From: Stefan Schimanski Date: Wed, 12 Mar 2008 14:07:53 +0000 (+0000) Subject: * recover the status bar by only showing the layout list hints when the layout list... X-Git-Tag: 1.6.10~5677 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bde87d4ce789a4a8c5c95847a02daaa2b7c9b3c8;p=features.git * recover the status bar by only showing the layout list hints when the layout list is visible. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23683 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 581e6ec9d2..ef37a77768 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -494,12 +494,6 @@ GuiLayoutBox::GuiLayoutBox(GuiView & owner) void GuiLayoutBox::setFilter(QString const & s) { - if (!s.isEmpty()) - owner_.message(_("Filtering layouts with \"" + fromqstr(s) + "\". " - "Press ESC to remove filter.")); - else - owner_.message(_("Enter characters to filter the layout list.")); - bool enabled = view()->updatesEnabled(); view()->setUpdatesEnabled(false); @@ -535,6 +529,12 @@ void GuiLayoutBox::setFilter(QString const & s) // The item delegate hack is off again. So trigger a relayout of the popup. filterModel_->triggerLayoutChange(); + + if (!s.isEmpty()) + owner_.message(_("Filtering layouts with \"" + fromqstr(s) + "\". " + "Press ESC to remove filter.")); + else + owner_.message(_("Enter characters to filter the layout list.")); } view()->setUpdatesEnabled(enabled);