Device Support: Fix device restoring.

The S60Manager instantiated the device manager, which then tried
to restore the devices with not all factories being present, resulting
in most saved devices being lost.
That instantiation is now moved to a point in time when all plugins
have been initialized.

Change-Id: I15145bddde89dd6109e092a7b8e03bb92934a29a
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Christian Kandeler
2012-04-18 12:04:14 +02:00
committed by Tobias Hunger
parent e59d06ba00
commit 53702d5dcc
4 changed files with 15 additions and 3 deletions

View File

@@ -293,6 +293,12 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
return true;
}
bool Qt4ProjectManagerPlugin::delayedInitialize()
{
S60Manager::instance()->addDevice();
return true;
}
void Qt4ProjectManagerPlugin::extensionsInitialized()
{
m_qt4ProjectManager->init();