Welcome Screen: Fix regressions

- last session / current session semantics is back
- Manage Sessions... button is back

This commit changes the behaviour of currentSession()
to return the session name and not the full path.
SessionNodeImpl as the other user has been adjusted
accordingly.

Change-Id: I1dcfbef2fb4dacf3e3906871d816483c2bfb76da
Reviewed-on: http://codereview.qt.nokia.com/1461
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Daniel Molkentin
2011-07-11 20:25:00 +02:00
committed by Eike Ziller
parent fd9232fca2
commit 22d6dfa45a
8 changed files with 56 additions and 40 deletions

View File

@@ -834,7 +834,7 @@ void SessionManager::configureEditor(Core::IEditor *editor, const QString &fileN
QString SessionManager::currentSession() const
{
return m_file->fileName();
return QFileInfo(m_file->fileName()).completeBaseName();
}
void SessionManager::updateWindowTitle()