diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-13 18:46:23 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-02-13 18:46:23 +0100 |
| commit | 47f19eb647bc35af73815087a84ac45220f557b2 (patch) | |
| tree | 610631f941025f34b3ca17e07cbc4579a1e8bd2b /UpdateManager/UpdateManager.py | |
| parent | bd10456add8ee59da5a540ba53d70cf708cfcb54 (diff) | |
| download | python-apt-47f19eb647bc35af73815087a84ac45220f557b2.tar.gz | |
* Destroy all gtk.messagedialogs after use
Diffstat (limited to 'UpdateManager/UpdateManager.py')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 0638916f..2adb64da 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -660,6 +660,7 @@ class UpdateManager(SimpleGladeApp): dialog.set_markup(primary); dialog.format_secondary_text(secondary); dialog.run() + dialog.destroy() except IOError: primary = "<span weight=\"bold\" size=\"larger\">%s</span>" % \ _("Could not download the release notes") @@ -670,6 +671,7 @@ class UpdateManager(SimpleGladeApp): dialog.set_markup(primary); dialog.format_secondary_text(secondary); dialog.run() + dialog.destroy() self.window_main.set_sensitive(True) self.window_main.window.set_cursor(None) # user clicked cancel @@ -718,6 +720,7 @@ class UpdateManager(SimpleGladeApp): dialog.set_markup(primary); dialog.format_secondary_text(secondary); dialog.run() + dialog.destroy() else: #print "runing: %s" % script os.execv(script,[]) @@ -797,6 +800,7 @@ class UpdateManager(SimpleGladeApp): dialog.set_markup(msg) dialog.vbox.set_spacing(6) dialog.run() + dialog.destroy() sys.exit(1) #apt_pkg.Config.Set("Debug::pkgPolicy","1") #self.depcache = apt_pkg.GetDepCache(self.cache) |
