[Pkg-bazaar-commits] ./bzr-gtk/unstable r401: Made the push dialog close when the cancel button is clicked.
Daniel Schierbeck
daniel.schierbeck at gmail.com
Fri Apr 10 07:45:00 UTC 2009
------------------------------------------------------------
revno: 401
committer: Daniel Schierbeck <daniel.schierbeck at gmail.com>
branch nick: menubar
timestamp: Thu 2007-11-22 00:49:58 +0100
message:
Made the push dialog close when the cancel button is clicked.
modified:
revisionmenu.py
-------------- next part --------------
=== modified file 'revisionmenu.py'
--- a/revisionmenu.py 2007-11-06 18:39:30 +0000
+++ b/revisionmenu.py 2007-11-21 23:49:58 +0000
@@ -86,12 +86,16 @@
def show_push(self, item):
from bzrlib.plugins.gtk.push import PushDialog
dialog = PushDialog(self.repository, self.revids[0], self.branch)
- dialog.run()
+ response = dialog.run()
+
+ if response != gtk.RESPONSE_NONE:
+ dialog.destroy()
def show_tag(self, item):
from bzrlib.plugins.gtk.tags import AddTagDialog
dialog = AddTagDialog(self.repository, self.revids[0], self.branch)
response = dialog.run()
+
if response != gtk.RESPONSE_NONE:
dialog.hide()
More information about the Pkg-bazaar-commits
mailing list