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
This commit is contained in:
Abdelrazak Younes 2008-10-03 13:34:10 +00:00
parent e29edccc3f
commit 4873fb9d6c
2 changed files with 4 additions and 1 deletions

View File

@ -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() {}

View File

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