The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit 06f394a3d423de80cab8ec86a20b9dcacdfabfe2
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Thu Oct 11 00:21:38 2012 +0200

    Show keyboard binding when a layout selection is done in LayoutBox
    
    The obnoxious messages in Private::setFilter cover any message set by 
lyx::dispatch. The solution I chose is to return early when the filter is not 
changed.
    
    If this makes sense, then the same optimization should be added to 
CategorizedCombo, IMO.

diff --git a/src/frontends/qt4/LayoutBox.cpp b/src/frontends/qt4/LayoutBox.cpp
index 9460427..aa22e60 100644
--- a/src/frontends/qt4/LayoutBox.cpp
+++ b/src/frontends/qt4/LayoutBox.cpp
@@ -350,6 +350,10 @@ static QString charFilterRegExp(QString const & filter)
 
 void LayoutBox::Private::setFilter(QString const & s)
 {
+       // exit early if nothing has to be done
+       if (filter_ == s)
+               return;
+
        bool enabled = p->view()->updatesEnabled();
        p->view()->setUpdatesEnabled(false);
 

-----------------------------------------------------------------------

Summary of changes:
 src/frontends/qt4/LayoutBox.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to