Skip to content

Commit 31d2088

Browse files
committed
autoLoadLastDBFileAtStartup: refresh table browsers
Refresh table browser if its active
1 parent c8ab3f8 commit 31d2088

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MainWindow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ MainWindow::MainWindow(QWidget* parent)
9999
if (Settings::getValue("General", "autoLoadLastDBFileAtStartup").toBool()) {
100100
recentFileActs[0]->trigger();
101101
update_structure();
102+
if (ui->mainTab->currentWidget() == ui->browser)
103+
refreshTableBrowsers();
102104
}
103105

104106
connect(&db, &DBBrowserDB::structureUpdated, this, [update_structure = std::move(update_structure)]() {

0 commit comments

Comments
 (0)