From b4a9e136db19e9fd83bb0c676c1d2b4cc990c249 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Fri, 13 Mar 2009 14:18:50 +0100 Subject: Gui refreshes silently (ticket#36) --- src/Gui/CCMainWindow.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py index 440bd3c..c813de1 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) -- cgit