mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-06 14:07:38 +03:00
Get modified status directly from database object instead of using window title
This commit is contained in:
parent
a87fab8d18
commit
18b5b76a80
3 changed files with 16 additions and 5 deletions
|
@ -519,11 +519,12 @@ void MainWindow::updateWindowTitle()
|
|||
windowTitle = BaseWindowTitle;
|
||||
} else {
|
||||
windowTitle = QString("%1 - %2").arg(customWindowTitlePart, BaseWindowTitle);
|
||||
if (customWindowTitlePart.right(1) == "*") {
|
||||
setWindowModified(true);
|
||||
} else {
|
||||
setWindowModified(false);
|
||||
}
|
||||
}
|
||||
|
||||
if (m_ui->tabWidget->isModified(tabWidgetIndex)) {
|
||||
setWindowModified(true);
|
||||
} else {
|
||||
setWindowModified(false);
|
||||
}
|
||||
|
||||
setWindowTitle(windowTitle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue