diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-01 16:52:41 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-01 16:52:41 +0200 |
commit | ab252f514132c47a9a8ceebbd502b83ab19a69e0 (patch) | |
tree | a7f210669665f46fd12dc9ac04ed0084a3e761cd /src | |
parent | 86877faf6b1be201de5ff64f1bdded594b901b85 (diff) | |
download | abrt-ab252f514132c47a9a8ceebbd502b83ab19a69e0.tar.gz abrt-ab252f514132c47a9a8ceebbd502b83ab19a69e0.tar.xz abrt-ab252f514132c47a9a8ceebbd502b83ab19a69e0.zip |
trivial: fix 566806 "abrt-gui sometimes can't be closed"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Gui/CCMainWindow.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index 25b08460..fce20276 100644 --- a/src/Gui/CCMainWindow.py +++ b/src/Gui/CCMainWindow.py @@ -372,7 +372,10 @@ class MainWindow(): self.window.set_urgency_hint(False) def on_bQuit_clicked(self, widget): - gtk.main_quit() + try: + gtk.main_quit() + except: # prevent "RuntimeError: called outside of a mainloop" + sys.exit() def show(self): self.window.show() |