forked from qt-creator/qt-creator
Remove SessionManager::currentSession
It returns the same as activeSession Change-Id: I244747eddcca3fda181eb8dc52b1b616beba212e Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user