diff options
Diffstat (limited to 'src/plugins/opensubtitles/opensubtitles.py')
-rw-r--r-- | src/plugins/opensubtitles/opensubtitles.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py index 589ef10fb..32340500a 100644 --- a/src/plugins/opensubtitles/opensubtitles.py +++ b/src/plugins/opensubtitles/opensubtitles.py @@ -455,7 +455,7 @@ class OpenSubtitles (GObject.Object, # pylint: disable=R0902 def _build_dialog (self): ui_file_path = os.path.dirname (os.path.abspath (__file__)) + sep + 'opensubtitles.ui' builder = Gtk.Builder.new_from_file (ui_file_path) - builder.connect_signals(None) + builder.connect_signals(self) # Obtain all the widgets we need to initialize combobox = builder.get_object ('language_combobox') @@ -527,6 +527,10 @@ class OpenSubtitles (GObject.Object, # pylint: disable=R0902 self._tree_view.connect ('row-activated', self.__on_treeview__row_activate) + def _hide_on_delete(self, *_): + self._dialog.hide_on_delete() + return True + def _show_dialog (self, *_): if not self._dialog: self._build_dialog () |