Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
a461c6e1
Commit
a461c6e1
authored
Oct 27, 2009
by
Oswald Buddenhagen
Browse files
reflect current session in the welcome page's list
parent
99a7f927
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/projectwelcomepagewidget.cpp
View file @
a461c6e1
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment