diff --git a/src/frontends/qt4/FindAndReplace.cpp b/src/frontends/qt4/FindAndReplace.cpp index 44fc8460bd..0291ebaa11 100644 --- a/src/frontends/qt4/FindAndReplace.cpp +++ b/src/frontends/qt4/FindAndReplace.cpp @@ -568,7 +568,7 @@ bool FindAndReplaceWidget::initialiseParams(std::string const & /*params*/) FindAndReplace::FindAndReplace(GuiView & parent, Qt::DockWidgetArea area, Qt::WindowFlags flags) - : DockView(parent, "Find LyX", qt_("Advanced Find and Replace"), + : DockView(parent, "findreplaceadv", qt_("Advanced Find and Replace"), area, flags) { widget_ = new FindAndReplaceWidget(parent); diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index ebce023c7c..1344d4f004 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -681,6 +681,8 @@ bool GuiView::restoreLayout() dialog->prepareView(); if ((dialog = findOrBuild("progress", true))) dialog->prepareView(); + if ((dialog = findOrBuild("findreplaceadv", true))) + dialog->prepareView(); if (!restoreState(settings.value("layout").toByteArray(), 0)) initToolbars();