summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 14:18:50 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 14:18:50 +0100
commitb4a9e136db19e9fd83bb0c676c1d2b4cc990c249 (patch)
treeeca8a4e2ad7025e92f65e3784eb1bdb7e2d7d2ab /src/Gui
parentbc02aab93e78089ff48e381c0ced0a6dbb116efa (diff)
downloadabrt-b4a9e136db19e9fd83bb0c676c1d2b4cc990c249.tar.gz
abrt-b4a9e136db19e9fd83bb0c676c1d2b4cc990c249.tar.xz
abrt-b4a9e136db19e9fd83bb0c676c1d2b4cc990c249.zip
Gui refreshes silently (ticket#36)
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/CCMainWindow.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 440bd3c5..c813de15 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -160,12 +160,13 @@ class MainWindow():
gtk.main_quit()
def on_data_changed_cb(self, *args):
- ret = gui_question_dialog("Another crash detected, do you want to refresh the data?",self.window)
- if ret == gtk.RESPONSE_YES:
- self.hydrate()
- else:
- pass
- #print "got another crash, refresh gui?"
+ # FIXME mark the new entry somehow....
+ # remember the selected row
+ dumpsListStore, path = self.dlist.get_selection().get_selected_rows()
+ self.hydrate()
+ if not path:
+ return
+ self.dlist.set_cursor(path[0])
def on_analyze_complete_cb(self, daemon, report, pBarWindow):
gobject.source_remove(self.timer)