diff --git a/zenmap/zenmapGUI/DiffCompare.py b/zenmap/zenmapGUI/DiffCompare.py index e1953dd46..3adc5e7b8 100644 --- a/zenmap/zenmapGUI/DiffCompare.py +++ b/zenmap/zenmapGUI/DiffCompare.py @@ -202,7 +202,7 @@ class ScanChooser(HIGVBox): def show_scan(self, widget): nmap_output = self.get_nmap_output() - if nmap_output != "": + if nmap_output: self.txt_scan_result.get_buffer().set_text(nmap_output) def normalize_output(self, output): diff --git a/zenmap/zenmapGUI/ScanNmapOutputPage.py b/zenmap/zenmapGUI/ScanNmapOutputPage.py index 78d9c1dcf..8f471121a 100644 --- a/zenmap/zenmapGUI/ScanNmapOutputPage.py +++ b/zenmap/zenmapGUI/ScanNmapOutputPage.py @@ -268,7 +268,7 @@ class ScanNmapOutputPage(HIGVBox): if entry.parsed is not None: self.nmap_output.set_command_execution(None) nmap_output = entry.parsed.get_nmap_output() - if nmap_output != "": + if nmap_output: self.nmap_output.show_nmap_output(nmap_output) self.details_button.set_sensitive(True) elif entry.command is not None: