mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-27 23:07:11 -05:00
Correct window title when database name contains %1.
This commit is contained in:
parent
8748c76de2
commit
64394c0b15
@ -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…
x
Reference in New Issue
Block a user