Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Plugin toolbars and docks state saving
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9730 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Dec 2, 2008
1 parent e223a58 commit 037b039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -1741,15 +1741,15 @@ 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
settings.setValue( "/UI/state", this->saveState() );

// store window geometry
settings.setValue( "/UI/geometry", saveGeometry() );

QgsPluginRegistry::instance()->unloadAll();
}

void QgisApp::restoreWindowState()
Expand Down

0 comments on commit 037b039

Please sign in to comment.