Enable OK buton by default on rule edit dialog.

This commit is contained in:
Tomasz Sterna 2011-03-09 17:12:20 +01:00
parent 4df776c7de
commit 94c9751d78

View File

@ -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)