SessionManager: Restore last session setting with dots

As far as I can see the saved string was changed in May 2010 to not
store the filename but just the session name. Thus this code only worked
because completeBaseName() is the same if the name not contained a dot.

Task-number: QTCREATORBUG-8064
Change-Id: I59326282012ef46206da473a72d99a813f7a7ce7
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Daniel Teske
2012-10-16 18:10:08 +02:00
parent 6a90a1a740
commit bca5429633

View File

@@ -901,8 +901,7 @@ bool SessionManager::loadSession(const QString &session)
QString SessionManager::lastSession() const
{
QString fileName = ICore::settings()->value(QLatin1String("ProjectExplorer/StartupSession")).toString();
return QFileInfo(fileName).completeBaseName();
return ICore::settings()->value(QLatin1String("ProjectExplorer/StartupSession")).toString();
}
SessionNode *SessionManager::sessionNode() const