summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-10-29 17:10:36 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-10-29 17:10:36 +0100
commitc90c8298ea276ea5c7fdd5ac54ecb82c3fc1c589 (patch)
treeafcbeec4fbecf05538db5a81d32469496859cd94 /src
parent78edb404f6a8a4a405cb9b23dabd61e030cc3e1c (diff)
downloadabrt-c90c8298ea276ea5c7fdd5ac54ecb82c3fc1c589.tar.gz
abrt-c90c8298ea276ea5c7fdd5ac54ecb82c3fc1c589.tar.xz
abrt-c90c8298ea276ea5c7fdd5ac54ecb82c3fc1c589.zip
GUI: Wrong settings window is not shown behind the reporter dialog rhbz#531119
Diffstat (limited to 'src')
-rw-r--r--src/Gui/CCMainWindow.py2
-rw-r--r--src/Gui/CCReporterDialog.py6
-rw-r--r--src/Gui/report.glade1
3 files changed, 6 insertions, 3 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 34c2defe..77e9e333 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -295,7 +295,7 @@ class MainWindow():
if not report:
gui_error_message(_("Unable to get report!\nDebuginfo is missing?"))
return
- report_dialog = ReporterDialog(report, self.ccdaemon)
+ report_dialog = ReporterDialog(report, self.ccdaemon, parent=self.window)
# (response, report)
response, result = report_dialog.run()
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py
index eb311f73..9207a3e5 100644
--- a/src/Gui/CCReporterDialog.py
+++ b/src/Gui/CCReporterDialog.py
@@ -23,7 +23,7 @@ REFRESH = -50
class ReporterDialog():
"""Reporter window"""
- def __init__(self, report, daemon):
+ def __init__(self, report, daemon, parent=None):
self.editable = []
self.row_dict = {}
self.report = report
@@ -35,6 +35,9 @@ class ReporterDialog():
self.window = self.wTree.get_widget("reporter_dialog")
self.window.set_default_size(640, 480)
self.window.connect("response", self.on_response, daemon)
+ if parent:
+ self.window.set_transient_for(parent)
+ self.window.set_modal(True)
# comment textview
self.tvComment = self.wTree.get_widget("tvComment")
@@ -147,6 +150,7 @@ class ReporterDialog():
vbWrongSettings.pack_start(hbox)
vbWrongSettings.show_all()
dialog.set_transient_for(self.window)
+ dialog.set_modal(True)
response = dialog.run()
dialog.destroy()
if response == gtk.RESPONSE_NO:
diff --git a/src/Gui/report.glade b/src/Gui/report.glade
index 48fbad0a..9b582b22 100644
--- a/src/Gui/report.glade
+++ b/src/Gui/report.glade
@@ -5,7 +5,6 @@
<widget class="GtkDialog" id="reporter_dialog">
<property name="border_width">5</property>
<property name="title" translatable="yes">Report</property>
- <property name="modal">True</property>
<property name="window_position">center-on-parent</property>
<property name="default_width">400</property>
<property name="default_height">400</property>