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
11574611
Commit
11574611
authored
Sep 15, 2010
by
dt
Browse files
Session Manager: Easier code flow
parent
4c108128
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/session.cpp
View file @
11574611
...
...
@@ -894,14 +894,14 @@ void SessionManager::handleCurrentEditorChange(Core::IEditor *editor)
void
SessionManager
::
updateWindowTitle
()
{
QString
windowTitle
=
tr
(
"Qt Creator"
);
if
(
!
isDefaultSession
(
m_sessionName
))
{
if
(
isDefaultSession
(
m_sessionName
))
{
if
(
Project
*
currentProject
=
ProjectExplorerPlugin
::
instance
()
->
currentProject
())
windowTitle
.
prepend
(
currentProject
->
displayName
()
+
" - "
);
}
else
{
QString
sessionName
=
m_sessionName
;
if
(
sessionName
.
isEmpty
())
sessionName
=
tr
(
"Untitled"
);
windowTitle
.
prepend
(
sessionName
+
" - "
);
}
else
{
if
(
Project
*
currentProject
=
ProjectExplorerPlugin
::
instance
()
->
currentProject
())
windowTitle
.
prepend
(
currentProject
->
displayName
()
+
" - "
);
}
if
(
m_core
->
editorManager
()
->
currentEditor
())
{
QFileInfo
fi
(
m_core
->
editorManager
()
->
currentEditor
()
->
file
()
->
fileName
());
...
...
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