mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-18 03:44:49 -04:00
parent
9baf77cbc4
commit
20aefd0c7a
2 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,6 +99,8 @@ DatabaseSettingsDialog::~DatabaseSettingsDialog() = default;
|
|||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue