mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-27 12:27:04 -08:00
Set window modified indicator when database has unsaved changes
This commit is contained in:
1 parent
1b10aae74c
commit
a87fab8d18
1 file changed
+5
@@ -519,6 +519,11 @@ void MainWindow::updateWindowTitle()
|
||||
windowTitle = BaseWindowTitle;
|
||||
} else {
|
||||
windowTitle = QString("%1 - %2").arg(customWindowTitlePart, BaseWindowTitle);
|
||||
if (customWindowTitlePart.right(1) == "*") {
|
||||
setWindowModified(true);
|
||||
} else {
|
||||
setWindowModified(false);
|
||||
}
|
||||
}
|
||||
|
||||
setWindowTitle(windowTitle);
|
||||
|
||||
Reference in new issue
Block a user