diff --git a/src/plugins/projectexplorer/projectwelcomepagewidget.cpp b/src/plugins/projectexplorer/projectwelcomepagewidget.cpp index 4df5f9c9a57c9eb0b1fe4f65b46d248ee725c799..c2c7c9d72fa7efc8313dd6bb8c16879265b6b4e9 100644 --- a/src/plugins/projectexplorer/projectwelcomepagewidget.cpp +++ b/src/plugins/projectexplorer/projectwelcomepagewidget.cpp @@ -106,8 +106,13 @@ void ProjectWelcomePageWidget::updateWelcomePage(const WelcomePageData &welcomeP if (welcomePageData.sessionList.count() > 0) { foreach (const QString &s, welcomePageData.sessionList) { QString str = s; - if (s == welcomePageData.previousSession) - str = tr("%1 (last session)").arg(s); + if (welcomePageData.activeSession.isEmpty()) { + if (s == welcomePageData.previousSession) + str = tr("%1 (last session)").arg(s); + } else { + if (s == welcomePageData.activeSession) + str = tr("%1 (current session)").arg(s); + } ui->sessTreeWidget->addItem(str, s); } ui->sessTreeWidget->updateGeometry();