From a270b2bc2c7a0bb5ce3318e617fc3d3e00fe35dd Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 22 Mar 2006 22:20:06 +0100 Subject: * don't show a reload dialog when runing embedded --- SoftwareProperties/SoftwareProperties.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'SoftwareProperties') 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() -- cgit v1.2.3