Remove the window modified indicator feature from non-Mac again.

It creates too much headache with widgets calling setWindowTitle
themselves and Qt spilling out warnings about missing "[*]".

Reviewed-by: Thorbjørn Lindeijer
This commit is contained in:
con
2010-04-21 14:11:36 +02:00
parent ec688e5c62
commit 62e57edf4c
2 changed files with 5 additions and 5 deletions

View File

@@ -926,14 +926,10 @@ 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 + "[*] - ");
else
windowTitle.append("[*]"); // placeholder will be removed by Qt)
windowTitle.prepend(fileName + " - ");
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);