use setWindowModified() to indicate modified state and window title
This commit is contained in:
committed by
Yorik van Havre
parent
b4ad517ed6
commit
241ce40b5f
@@ -453,7 +453,10 @@ QString MDIView::buildWindowTitle()
|
||||
QString windowTitle;
|
||||
if (Gui::Document* document = getGuiDocument()) {
|
||||
if (document->isModified()) {
|
||||
windowTitle = QString::fromUtf8("* ");
|
||||
getMainWindow()->setWindowModified(TRUE);
|
||||
}
|
||||
else {
|
||||
getMainWindow()->setWindowModified(FALSE);
|
||||
}
|
||||
|
||||
windowTitle.append(QString::fromUtf8(getAppDocument()->getName()));
|
||||
|
||||
@@ -2537,7 +2537,7 @@ void MainWindow::setWindowTitle(const QString& string)
|
||||
}
|
||||
|
||||
if (!string.isEmpty()) {
|
||||
title = QString::fromUtf8("%1 - %2").arg(string, title);
|
||||
title = QString::fromUtf8("[*] %1 - %2").arg(string, title);
|
||||
}
|
||||
|
||||
QMainWindow::setWindowTitle(title);
|
||||
|
||||
Reference in New Issue
Block a user