[gnue] r9737 - trunk/gnue-forms/src

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-06-25 10:33:12 -0500 (Mon, 25 Jun 2007)
New Revision: 9737

Modified:
   trunk/gnue-forms/src/GFForm.py
Log:
Fix for applying a filter while the focus is on a button that is not bound to a
block.


Modified: trunk/gnue-forms/src/GFForm.py
===================================================================
--- trunk/gnue-forms/src/GFForm.py	2007-06-25 14:56:51 UTC (rev 9736)
+++ trunk/gnue-forms/src/GFForm.py	2007-06-25 15:33:12 UTC (rev 9737)
@@ -1387,7 +1387,12 @@
             else:
                 self.status_message (u_('Query successful.'))
 
-            self._currentBlock._focus_in()
+            if self._currentBlock is not None:
+                self._currentBlock._focus_in()
+            else:
+                # The Focus-In trigger of the block has already refreshed the
+                # toolbar, unless there is no current block.
+                self.status_changed()
 
             # self.beginEditing()             # happens via _focus_in()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.