forked from qt-creator/qt-creator
Use Core::Id in ModeManager interface
Makes it more uniform to use and allows placeholder widget creation to be independent of mode creations. Change-Id: I4021bc9db7f8c78f0374c0cc3b3331506959afe4 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -172,11 +172,10 @@ bool SessionManager::isDefaultSession(const QString &session)
|
||||
return session == QLatin1String("default");
|
||||
}
|
||||
|
||||
|
||||
void SessionManager::saveActiveMode(IMode *mode)
|
||||
void SessionManager::saveActiveMode(Id mode)
|
||||
{
|
||||
if (mode->id() != Core::Constants::MODE_WELCOME)
|
||||
setValue(QLatin1String("ActiveMode"), mode->id().toString());
|
||||
if (mode != Core::Constants::MODE_WELCOME)
|
||||
setValue(QLatin1String("ActiveMode"), mode.toString());
|
||||
}
|
||||
|
||||
void SessionManager::clearProjectFileCache()
|
||||
|
||||
Reference in New Issue
Block a user