From bca54296331467e147c2f8bfb1b05b49810f6e73 Mon Sep 17 00:00:00 2001 From: Daniel Teske Date: Tue, 16 Oct 2012 18:10:08 +0200 Subject: [PATCH] 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 Reviewed-by: Daniel Teske --- src/plugins/projectexplorer/session.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/session.cpp b/src/plugins/projectexplorer/session.cpp index 5324ad7da0e..a4935cdb0b6 100644 --- a/src/plugins/projectexplorer/session.cpp +++ b/src/plugins/projectexplorer/session.cpp @@ -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