mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-21 09:31:32 -08:00
Indicate read-only state in window title.
This commit is contained in:
1 parent
5201001f3a
commit
8aefb1ed82
3 files changed
+32
-1
No files matched your search
@@ -225,7 +225,11 @@ void MainWindow::updateWindowTitle()
|
||||
setWindowTitle(BaseWindowTitle);
|
||||
}
|
||||
else {
|
||||
setWindowTitle(m_ui->tabWidget->tabText(index).append(" - ").append(BaseWindowTitle));
|
||||
QString windowTitle = m_ui->tabWidget->tabText(index);
|
||||
if (m_ui->tabWidget->readOnly(index)) {
|
||||
windowTitle.append(" [").append(tr("read-only")).append("]");
|
||||
}
|
||||
setWindowTitle(windowTitle.append(" - ").append(BaseWindowTitle));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user