summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-08-18 17:12:05 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-08-18 17:12:05 +0200
commit0c93e538246de251fa627d806cb5d3e569a7685d (patch)
tree1ae8779cada4c016d9b32cc08880fef7dc23ab46
parent2c8c422ef09b253b2cd7c2cc9fde9dda76cd3bb2 (diff)
downloadabrt-0c93e538246de251fa627d806cb5d3e569a7685d.tar.gz
abrt-0c93e538246de251fa627d806cb5d3e569a7685d.tar.xz
abrt-0c93e538246de251fa627d806cb5d3e569a7685d.zip
abrt-gui: fix crash when run by root
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--src/Gui/CCMainWindow.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Gui/CCMainWindow.py b/src/Gui/CCMainWindow.py
index 8e0b0085..6844201a 100644
--- a/src/Gui/CCMainWindow.py
+++ b/src/Gui/CCMainWindow.py
@@ -64,6 +64,8 @@ class MainWindow():
#init the dumps treeview
self.dlist = self.wTree.get_widget("tvDumps")
+ #rows of items with:
+ #icon, package_name, application, date, crash_rate, user (only if root), is_reported, ?object?
if os.getuid() == 0:
# root
self.dumpsListStore = gtk.ListStore(gtk.gdk.Pixbuf, str,str,str,str,str,bool, object)
@@ -177,7 +179,7 @@ class MainWindow():
icon = None
if os.getuid() == 0:
n = self.dumpsListStore.append([icon, entry.getPackage(), entry.getExecutable(),
- entry.getTime("%Y.%m.%d %H:%M:%S"), entry.getCount(), pwd.getpwuid(int(entry.getUID()))[0], entry])
+ entry.getTime("%Y.%m.%d %H:%M:%S"), entry.getCount(), pwd.getpwuid(int(entry.getUID()))[0], entry.isReported(), entry])
else:
n = self.dumpsListStore.append([icon, entry.getPackage(), entry.getExecutable(),
entry.getTime("%Y.%m.%d %H:%M:%S"), entry.getCount(), entry.isReported(), entry])