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
7907e447
Commit
7907e447
authored
Jun 12, 2009
by
Thorbjørn Lindeijer
Browse files
Don't try to show an empty filename in the window title
parent
73487792
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/projectexplorer/session.cpp
View file @
7907e447
...
...
@@ -890,7 +890,9 @@ void SessionManager::updateWindowTitle()
}
if
(
m_core
->
editorManager
()
->
currentEditor
())
{
QFileInfo
fi
(
m_core
->
editorManager
()
->
currentEditor
()
->
file
()
->
fileName
());
windowTitle
.
prepend
(
fi
.
fileName
()
+
" - "
);
QString
fileName
=
fi
.
fileName
();
if
(
!
fileName
.
isEmpty
())
windowTitle
.
prepend
(
fileName
+
" - "
);
m_core
->
mainWindow
()
->
setWindowFilePath
(
fi
.
absoluteFilePath
());
}
else
{
m_core
->
mainWindow
()
->
setWindowFilePath
(
QString
());
...
...
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