mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Set window modified indicator when database has unsaved changes
This commit is contained in:
parent
1b10aae74c
commit
a87fab8d18
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user