From 5c6132621d4506f61736428c8c8cea5f3a69c723 Mon Sep 17 00:00:00 2001 From: borysiasty Date: Tue, 2 Dec 2008 23:23:46 +0000 Subject: [PATCH] Plugin toolbars and docks state saving git-svn-id: http://svn.osgeo.org/qgis/trunk@9730 c8812cc2-4d05-0410-92ff-de0c093fc19c --- src/app/qgisapp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 304d9eb9110..21dfa3f224c 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -1741,8 +1741,6 @@ void QgisApp::saveRecentProjectPath( QString projectPath, QSettings & settings ) void QgisApp::saveWindowState() { - QgsPluginRegistry::instance()->unloadAll(); - // store window and toolbar positions QSettings settings; // store the toolbar/dock widget settings using Qt4 settings API @@ -1750,6 +1748,8 @@ void QgisApp::saveWindowState() // store window geometry settings.setValue( "/UI/geometry", saveGeometry() ); + + QgsPluginRegistry::instance()->unloadAll(); } void QgisApp::restoreWindowState()