kdevplatform/shell: work-around for Qt 5.9/macOS bug showing modified indicator

parent 0ea86e91
Pipeline #6918 passed with stage
in 47 minutes and 38 seconds
......@@ -463,9 +463,15 @@ void MainWindow::updateCaption()
isDocumentModified = iDoc && (iDoc->state() != IDocument::Clean);
}
// Workarund for a bug observed on macOS with Qt 5.9.8 TODO: test with newer Qt, report bug
// Ensure to call setCaption() (thus implicitly setWindowTitle()) before
// setWindowModified() & setWindowFilePath().
// Otherwise calling setWindowModified(false) when it was true before results in the
// "modified" indicator=asterisk becoming part of the displayed window title somehow.
// Other platforms are not affected, any order is fine.
setCaption(title);
setWindowModified(isDocumentModified);
setWindowFilePath(localFilePath);
setCaption(title);
}
void MainWindow::updateAllTabColors()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment