From 42affe0da66bdb5c3fab354ec5e1b6b815398fdc Mon Sep 17 00:00:00 2001 From: hexagonrecursion <52621858+hexagonrecursion@users.noreply.github.com> Date: Sun, 27 Oct 2019 10:22:41 +0000 Subject: [PATCH] Remove redundant popups --- qubesmanager/settings.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/qubesmanager/settings.py b/qubesmanager/settings.py index 5face59..e17a9f6 100644 --- a/qubesmanager/settings.py +++ b/qubesmanager/settings.py @@ -321,27 +321,6 @@ class VMSettingsWindow(ui_settingsdlg.Ui_SettingsDialog, QtWidgets.QDialog): self.netvm_no_firewall_label.setVisible( netvm is not None and not netvm.features.check_with_template('qubes-firewall', False)) - if netvm is None: - QtWidgets.QMessageBox.warning( - self, - self.tr("Qube configuration problem!"), - self.tr('This qube has networking disabled ' - '(Basic -> Networking) - network will be disabled. ' - 'If you want to use firewall, ' - 'please enable networking.') - ) - if netvm is not None and \ - not netvm.features.check_with_template( - 'qubes-firewall', False): - QtWidgets.QMessageBox.warning( - self, - self.tr("Qube configuration problem!"), - self.tr("The '{vm}' qube is network connected to " - "'{netvm}', which does not support firewall!
" - "You may edit the '{vm}' qube firewall rules, but " - "these will not take any effect until you connect it " - "to a working Firewall qube.").format( - vm=self.vm.name, netvm=netvm.name)) def current_tab_changed(self, idx): if idx == self.tabs_indices["firewall"]: