Commit 53ffa9c6 authored by Daniel Teske's avatar Daniel Teske
Browse files

Remove SessionManager::currentSession



It returns the same as activeSession

Change-Id: I244747eddcca3fda181eb8dc52b1b616beba212e
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent 3c53e532
......@@ -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;
......
......@@ -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)) {
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment