Commit a461c6e1 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

reflect current session in the welcome page's list

parent 99a7f927
......@@ -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();
......
Supports Markdown
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