diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-10-29 17:10:36 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-10-29 17:10:36 +0100 |
| commit | c90c8298ea276ea5c7fdd5ac54ecb82c3fc1c589 (patch) | |
| tree | afcbeec4fbecf05538db5a81d32469496859cd94 /src/Gui/CCReporterDialog.py | |
| parent | 78edb404f6a8a4a405cb9b23dabd61e030cc3e1c (diff) | |
GUI: Wrong settings window is not shown behind the reporter dialog rhbz#531119
Diffstat (limited to 'src/Gui/CCReporterDialog.py')
| -rw-r--r-- | src/Gui/CCReporterDialog.py | 6 |
1 files changed, 5 insertions, 1 deletions
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: |
