Set window modified indicator when database has unsaved changes

This commit is contained in:
Weslly 2017-03-20 21:11:17 -03:00
parent 1b10aae74c
commit a87fab8d18

View File

@ -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);