diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index 427dda7ab25..a65fdd3458a 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -1240,7 +1240,7 @@ void ProjectExplorerPlugin::savePersistentSettings() QSettings *s = Core::ICore::settings(); if (s) { - s->setValue(QLatin1String("ProjectExplorer/StartupSession"), d->m_session->currentSession()); + s->setValue(QLatin1String("ProjectExplorer/StartupSession"), d->m_session->activeSession()); s->remove(QLatin1String("ProjectExplorer/RecentProjects/Files")); QStringList fileNames; diff --git a/src/plugins/projectexplorer/session.cpp b/src/plugins/projectexplorer/session.cpp index cb11709a47e..b4c27c5659d 100644 --- a/src/plugins/projectexplorer/session.cpp +++ b/src/plugins/projectexplorer/session.cpp @@ -848,11 +848,6 @@ void SessionManager::configureEditor(Core::IEditor *editor, const QString &fileN } } -QString SessionManager::currentSession() const -{ - return QFileInfo(m_file->fileName()).completeBaseName(); -} - void SessionManager::updateWindowTitle() { if (isDefaultSession(m_sessionName)) { diff --git a/src/plugins/projectexplorer/session.h b/src/plugins/projectexplorer/session.h index 512afd93490..58b04ea2935 100644 --- a/src/plugins/projectexplorer/session.h +++ b/src/plugins/projectexplorer/session.h @@ -102,7 +102,6 @@ public: bool addDependency(Project *project, Project *depProject); void removeDependency(Project *project, Project *depProject); - QString currentSession() const; QString sessionNameToFileName(const QString &session) const; QString sessionNameFromFileName(const QString &fileName) const; Project *startupProject() const;