Enable OK buton by default on rule edit dialog.
This commit is contained in:
parent
4df776c7de
commit
94c9751d78
@ -69,6 +69,7 @@ class EditFwRulesDlg (QDialog, ui_editfwrulesdlg.Ui_EditFwRulesDlg):
|
|||||||
|
|
||||||
def edit_rule_button_pressed(self):
|
def edit_rule_button_pressed(self):
|
||||||
dialog = NewFwRuleDlg()
|
dialog = NewFwRuleDlg()
|
||||||
|
dialog.set_ok_enabled(True)
|
||||||
row = self.rulesTreeView.selectedIndexes().pop().row()
|
row = self.rulesTreeView.selectedIndexes().pop().row()
|
||||||
item = self.__model.children[row]
|
item = self.__model.children[row]
|
||||||
dialog.addressEdit.setText(item.address)
|
dialog.addressEdit.setText(item.address)
|
||||||
|
Loading…
Reference in New Issue
Block a user