Save/restore settings of navigation widgets more aggressively

Save/restore the current settings of a navigation widget per position,
every time something changes in the navigation bar setup. Previously,
only settings on exit were stored / restored on startup, which means
that e.g. when you switch from the Outline to the Project Explorer and
back, the settings of the Outline were lost.

Reviewed-by: con
This commit is contained in:
Kai Koehne
2010-07-15 12:24:03 +02:00
parent b687272aca
commit 802b21c016
3 changed files with 171 additions and 140 deletions

View File

@@ -67,6 +67,7 @@
#include <coreplugin/findplaceholder.h>
#include <coreplugin/icorelistener.h>
#include <coreplugin/inavigationwidgetfactory.h>
#include <coreplugin/settingsdatabase.h>
#include <utils/pathchooser.h>
#include <utils/stylehelper.h>
@@ -332,6 +333,9 @@ void MainWindow::extensionsInitialized()
m_actionManager->initialize();
m_vcsManager->extensionsInitialized();
m_navigationWidget->setFactories(ExtensionSystem::PluginManager::instance()->getObjects<INavigationWidgetFactory>());
readSettings();
updateContext();