* 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
This commit is contained in:
Stefan Schimanski 2008-03-12 14:07:53 +00:00
parent 2f67f8c2b3
commit bde87d4ce7

View File

@ -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);