From 94c9751d78b09ab049d71719e48c4a5d9433eec2 Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Wed, 9 Mar 2011 17:12:20 +0100 Subject: [PATCH] Enable OK buton by default on rule edit dialog. --- qubesmanager/firewall.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qubesmanager/firewall.py b/qubesmanager/firewall.py index 2ac6ed1..47e4296 100644 --- a/qubesmanager/firewall.py +++ b/qubesmanager/firewall.py @@ -69,6 +69,7 @@ class EditFwRulesDlg (QDialog, ui_editfwrulesdlg.Ui_EditFwRulesDlg): def edit_rule_button_pressed(self): dialog = NewFwRuleDlg() + dialog.set_ok_enabled(True) row = self.rulesTreeView.selectedIndexes().pop().row() item = self.__model.children[row] dialog.addressEdit.setText(item.address)