]> git.lyx.org Git - features.git/commitdiff
LyX remembers the state and geometry of the advanced find and replace dockview.
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 6 Jan 2011 00:52:46 +0000 (00:52 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 6 Jan 2011 00:52:46 +0000 (00:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37121 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/FindAndReplace.cpp
src/frontends/qt4/GuiView.cpp

index 44fc8460bdd5a534aee64e647788938241b60ad8..0291ebaa11d6b3b8a733771ec7228048c2af7fc0 100644 (file)
@@ -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);
index ebce023c7c42d2a32a2f2879153cae08e77d3fd0..1344d4f0045a17bd28c38f38acf810b1b763b379 100644 (file)
@@ -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();