mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-14 10:39:35 -04:00
Correct window title when database name contains %1.
This commit is contained in:
parent
8748c76de2
commit
64394c0b15
1 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ void MainWindow::updateWindowTitle()
|
||||||
if (stackedWidgetIndex == 0 && tabWidgetIndex != -1) {
|
if (stackedWidgetIndex == 0 && tabWidgetIndex != -1) {
|
||||||
customWindowTitlePart = m_ui->tabWidget->tabText(tabWidgetIndex);
|
customWindowTitlePart = m_ui->tabWidget->tabText(tabWidgetIndex);
|
||||||
if (m_ui->tabWidget->readOnly(tabWidgetIndex)) {
|
if (m_ui->tabWidget->readOnly(tabWidgetIndex)) {
|
||||||
customWindowTitlePart.append(" [%1]").arg(tr("read-only"));
|
customWindowTitlePart.append(QString(" [%1]").arg(tr("read-only")));
|
||||||
}
|
}
|
||||||
} else if (stackedWidgetIndex == 1) {
|
} else if (stackedWidgetIndex == 1) {
|
||||||
customWindowTitlePart = tr("Settings");
|
customWindowTitlePart = tr("Settings");
|
||||||
|
@ -351,7 +351,7 @@ void MainWindow::updateWindowTitle()
|
||||||
if (customWindowTitlePart.isEmpty()) {
|
if (customWindowTitlePart.isEmpty()) {
|
||||||
windowTitle = BaseWindowTitle;
|
windowTitle = BaseWindowTitle;
|
||||||
} else {
|
} else {
|
||||||
windowTitle = QString("%1 - %2").arg(customWindowTitlePart).arg(BaseWindowTitle);
|
windowTitle = QString("%1 - %2").arg(customWindowTitlePart, BaseWindowTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
setWindowTitle(windowTitle);
|
setWindowTitle(windowTitle);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue