mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
@@ -1811,6 +1811,10 @@ Are you sure you want to continue with this file?.</source>
|
||||
<source>Secret Service Integration</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Database Settings: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>DatabaseSettingsWidgetBrowser</name>
|
||||
|
||||
@@ -86,7 +86,7 @@ int EditWidget::pageIndex(const QWidget* widget) const
|
||||
|
||||
for (int i = 0; i < m_ui->stackedWidget->count(); i++) {
|
||||
auto* scrollArea = qobject_cast<QScrollArea*>(m_ui->stackedWidget->widget(i));
|
||||
if (scrollArea && scrollArea->widget() == widget) {
|
||||
if (scrollArea && (scrollArea == widget || scrollArea->widget() == widget)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,6 +97,10 @@ DatabaseSettingsDialog::~DatabaseSettingsDialog()
|
||||
|
||||
void DatabaseSettingsDialog::load(const QSharedPointer<Database>& db)
|
||||
{
|
||||
// Default to the main page on load
|
||||
setCurrentPage(0);
|
||||
setHeadline(tr("Database Settings: %1").arg(db->canonicalFilePath()));
|
||||
|
||||
m_generalWidget->loadSettings(db);
|
||||
m_databaseKeyWidget->loadSettings(db);
|
||||
m_encryptionWidget->loadSettings(db);
|
||||
|
||||
Reference in New Issue
Block a user