# HG changeset patch # User Henrik Stuart <h...@hstuart.dk> # Date 1254642261 -7200 # Node ID 63c486b158e9466d1717f448259b5d0120c054f1 # Parent 18da29b3a4260f859e8367fdde51a955cb975742 gorev: dialog could only be opened once due to use of destroy
Instead we reset the entry data and merely hide the dialog on successful navigation. diff -r 18da29b3a426 -r 63c486b158e9 tortoisehg/hgtk/gorev.py --- a/tortoisehg/hgtk/gorev.py Sat Oct 03 13:16:21 2009 +0200 +++ b/tortoisehg/hgtk/gorev.py Sun Oct 04 09:44:21 2009 +0200 @@ -52,7 +52,8 @@ revision = self.revEntry.get_text() if self.gotofunc: self.gotofunc(revision) - self.destroy() + self.revEntry.set_text('') + self.hide() except mercurial.error.RepoError, e: gdialog.Prompt(_('Invalid Revision'), str(e), self).run() self.revEntry.grab_focus() ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Tortoisehg-develop mailing list Tortoisehg-develop@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop