Skip to content

Commit

Permalink
Reset splitter sizes on database unlock
Browse files Browse the repository at this point in the history
* Attempt to avoid issue with splitters not being appropriately calculated because the main window isn't sized yet. This can happen if the main window is hidden when the database is loaded and the splitter sizes are not recorded in the config file.
  • Loading branch information
droidmonkey committed Jul 1, 2024
1 parent 166a371 commit ac96b79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/DatabaseTabWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ DatabaseTabWidget::DatabaseTabWidget(QWidget* parent)
connect(this, SIGNAL(currentChanged(int)), SLOT(emitActiveDatabaseChanged()));
connect(this, SIGNAL(activeDatabaseChanged(DatabaseWidget*)),
m_dbWidgetStateSync, SLOT(setActive(DatabaseWidget*)));
connect(this, &DatabaseTabWidget::databaseUnlocked, this, [this] (auto dbWidget) {
if (dbWidget == currentDatabaseWidget()) {
m_dbWidgetStateSync->setActive(dbWidget);
}
});
connect(autoType(), SIGNAL(globalAutoTypeTriggered(const QString&)), SLOT(performGlobalAutoType(const QString&)));
connect(autoType(), SIGNAL(autotypeRetypeTimeout()), SLOT(relockPendingDatabase()));
connect(autoType(), SIGNAL(autotypeFinished()), SLOT(relockPendingDatabase()));
Expand Down

0 comments on commit ac96b79

Please sign in to comment.