summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 14:38:28 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2009-03-13 14:38:28 +0100
commit4157547c2cda167b0d0454dc64b6630537c8d0f6 (patch)
tree012e6943896c59067d73f78ed5a7258b7815c70b /src/Gui
parentb4a9e136db19e9fd83bb0c676c1d2b4cc990c249 (diff)
downloadabrt-4157547c2cda167b0d0454dc64b6630537c8d0f6.tar.gz
abrt-4157547c2cda167b0d0454dc64b6630537c8d0f6.tar.xz
abrt-4157547c2cda167b0d0454dc64b6630537c8d0f6.zip
Delete and Report button are no longer active if no entry is selected (ticket#41)
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/CCMainWindow.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index c813de15..a92f5b82 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -95,7 +95,6 @@ class MainWindow():
result = dialog.run()
dialog.hide()
-
def error_cb(self, daemon, message=None):
# try to hide the progressbar, we dont really care if it was visible ..
try:
@@ -131,11 +130,14 @@ class MainWindow():
def on_tvDumps_cursor_changed(self,treeview):
dumpsListStore, path = self.dlist.get_selection().get_selected_rows()
if not path:
+ self.wTree.get_widget("bDelete").set_sensitive(False)
+ self.wTree.get_widget("bReport").set_sensitive(False)
self.wTree.get_widget("lDescription").set_label("")
return
+ self.wTree.get_widget("bDelete").set_sensitive(True)
+ self.wTree.get_widget("bReport").set_sensitive(True)
# this should work until we keep the row object in the last position
dump = dumpsListStore.get_value(dumpsListStore.get_iter(path[0]), len(self.dlist.get_columns()))
-
#move this to Dump class
lPackage = self.wTree.get_widget("lPackage")
self.wTree.get_widget("lDescription").set_label(dump.getDescription())