summaryrefslogtreecommitdiff
path: root/SoftwareProperties
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-03-22 22:20:06 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-03-22 22:20:06 +0100
commita270b2bc2c7a0bb5ce3318e617fc3d3e00fe35dd (patch)
tree1f0f5c5a97cb6d55495345317b60bb432d26d2b0 /SoftwareProperties
parent61e0c92db758048a62ff9b7873522cfc7ce26fab (diff)
downloadpython-apt-a270b2bc2c7a0bb5ce3318e617fc3d3e00fe35dd.tar.gz
* don't show a reload dialog when runing embedded
Diffstat (limited to 'SoftwareProperties')
-rw-r--r--SoftwareProperties/SoftwareProperties.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/SoftwareProperties/SoftwareProperties.py b/SoftwareProperties/SoftwareProperties.py
index 099576d0..ae2d5ecc 100644
--- a/SoftwareProperties/SoftwareProperties.py
+++ b/SoftwareProperties/SoftwareProperties.py
@@ -73,6 +73,7 @@ class SoftwareProperties(SimpleGladeApp):
self.window_main.set_transient_for(parent)
# If externally called, reparent to external application.
+ self.options = options
if options and options.toplevel != None:
toplevel = gtk.gdk.window_foreign_new(int(options.toplevel))
self.window_main.window.set_transient_for(toplevel)
@@ -344,7 +345,7 @@ class SoftwareProperties(SimpleGladeApp):
# show a dialog that a reload of the channel information is required
# only if there is no parent defined
if self.modified == True and \
- self.window_main.get_transient_for() == None:
+ self.options.toplevel == None:
d = dialog_cache_outdated.DialogCacheOutdated(self.window_main,
self.datadir)
res = d.run()