diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2015-04-09 14:34:17 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2015-04-09 14:34:17 +0200 |
commit | fbcb97a0f39a5be71ff766175743550eeeb699e8 (patch) | |
tree | a68e61de108c3cc39c053e0c0a9a2f666024388e /grc/gui/Param.py | |
parent | e2815ab62aa96ffe7a0c057c06cdd4a5490bdb76 (diff) |
grc: props dialog apply button was enabled unnecessarily
Diffstat (limited to 'grc/gui/Param.py')
-rw-r--r-- | grc/gui/Param.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grc/gui/Param.py b/grc/gui/Param.py index 7933973837..b9436ab06e 100644 --- a/grc/gui/Param.py +++ b/grc/gui/Param.py @@ -169,6 +169,7 @@ class EnumParam(InputParam): self._input = gtk.combo_box_new_text() for option in self.param.get_options(): self._input.append_text(option.get_name()) self._input.set_active(self.param.get_option_keys().index(self.param.get_value())) + self._input.connect('changed', self._editing_callback) self._input.connect('changed', self._apply_change) self.pack_start(self._input, False) def get_text(self): return self.param.get_option_keys()[self._input.get_active()] @@ -248,6 +249,7 @@ class FileParam(EntryParam): if gtk.RESPONSE_OK == file_dialog.run(): #run the dialog file_path = file_dialog.get_filename() #get the file path self._input.set_text(file_path) + self._editing_callback() self._apply_change() file_dialog.destroy() #destroy the dialog |