Skip to content

Commit

Permalink
Fix clicking on buttons on error pop-up doesn't work (#1250942)
Browse files Browse the repository at this point in the history
Set python-meh window to be modal and above other windows and hide
it when libreport window is displayed.

Signed-off-by: Vojtech Trefny <vtrefny@redhat.com>
  • Loading branch information
vojtechtrefny committed Sep 24, 2015
1 parent 5526cdf commit 68d0250
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions meh/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,16 @@ def destroy(self, *args, **kwargs):

def run(self, *args, **kwargs):
self._main_window.show_all()
# keep our window above dialogs
self._main_window.set_modal(True)
self._main_window.set_keep_above(True)
Gtk.main()
self.destroy()
return self._response

def on_report_clicked(self, button):
# hide our window to not interfere with libreport window
self._main_window.hide()
self._response = MAIN_RESPONSE_SAVE
Gtk.main_quit()

Expand Down

0 comments on commit 68d0250

Please sign in to comment.