From 4873fb9d6c92a3914e9a484fd02c43bed89b8c4f Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Fri, 3 Oct 2008 13:34:10 +0000 Subject: [PATCH] We don't want to restore geometry session for dock widgets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26696 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/DockView.h | 3 +++ src/frontends/qt4/GuiViewSource.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/DockView.h b/src/frontends/qt4/DockView.h index f79803463d..57354a8392 100644 --- a/src/frontends/qt4/DockView.h +++ b/src/frontends/qt4/DockView.h @@ -49,6 +49,9 @@ public: virtual QWidget * asQWidget() { return this; } virtual QWidget const * asQWidget() const { return this; } + /// We don't want to restore geometry session for dock widgets. + void restoreSession() {} + /// Dialog inherited methods //@{ void applyView() {} diff --git a/src/frontends/qt4/GuiViewSource.cpp b/src/frontends/qt4/GuiViewSource.cpp index d0e057d229..d16572bbf2 100644 --- a/src/frontends/qt4/GuiViewSource.cpp +++ b/src/frontends/qt4/GuiViewSource.cpp @@ -197,7 +197,7 @@ void GuiViewSource::saveSession() const void GuiViewSource::restoreSession() { - Dialog::restoreSession(); + DockView::restoreSession(); QSettings settings; widget_->viewFullSourceCB->setChecked( settings.value(sessionKey() + "/fullsource", false).toBool()); -- 2.39.2