Skip to content
GitLab
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
7d9398b7
Commit
7d9398b7
authored
Apr 16, 2010
by
con
Browse files
Fixup for non-Mac windowModified property handling.
Reviewed-by: Friedemann Kleint
parent
da5ba10f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/session.cpp
View file @
7d9398b7
...
...
@@ -926,10 +926,14 @@ void SessionManager::updateWindowTitle()
if
(
m_core
->
editorManager
()
->
currentEditor
())
{
QFileInfo
fi
(
m_core
->
editorManager
()
->
currentEditor
()
->
file
()
->
fileName
());
QString
fileName
=
fi
.
fileName
();
// [*] is placeholder for a windowModified marker, set in editor manager
if
(
!
fileName
.
isEmpty
())
windowTitle
.
prepend
(
fileName
+
" - "
);
windowTitle
.
prepend
(
fileName
+
"[*] - "
);
else
windowTitle
.
append
(
"[*]"
);
// placeholder will be removed by Qt)
m_core
->
mainWindow
()
->
setWindowFilePath
(
fi
.
absoluteFilePath
());
}
else
{
windowTitle
.
append
(
"[*]"
);
// placeholder for windowModified property (is removed by Qt)
m_core
->
mainWindow
()
->
setWindowFilePath
(
QString
());
}
m_core
->
mainWindow
()
->
setWindowTitle
(
windowTitle
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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