# HG changeset patch
# User Yuki KODAMA <endflow....@gmail.com>
# Date 1252123585 -32400
# Node ID 698fc26e1ac3ed51d4aeb78f88b28f70d3bdbc13
# Parent  544ec4210638737b03f5d305f77210c88dc16a32
commit: fix error when inputting MQ patch name for QNew

When calling 'reload_status', QNew textfield loses the focus.
So it has to grab the focus again after reloading.

diff --git a/hggtk/commit.py b/hggtk/commit.py
--- a/hggtk/commit.py
+++ b/hggtk/commit.py
@@ -485,7 +485,9 @@
             if self.qnew:
                 c_btn.set_label(_('QNew'))
                 c_btn.set_tooltip(self.tooltips, _('create new MQ patch'))
-                self._hg_call_wrapper('Status', self.do_reload_status)
+                self.reload_status()
+                self.qnew_name.grab_focus()
+                self.qnew_name.set_position(-1)
             else:
                 c_btn.set_label(_('QRefresh'))
                 c_btn.set_tooltip(self.tooltips, _('refresh top MQ patch'))

Attachment: thg-kuy_rev3842.patch
Description: Binary data

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to