From 832ab35913b3c1ee0b13e6fc17c69a65cf59608a Mon Sep 17 00:00:00 2001 From: oldlaptop Date: Mon, 21 Jun 2021 21:40:39 -0400 Subject: [PATCH] Refresh all new table browser tabs MainWindow::newTableBrowserTab is only calling the new TableBrowser's refresh() method through the constructor, before it has its model set, and the browser therefore is still blank when the user first sees it. A manual refresh at the end seems to be one way to fix this. --- src/MainWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 6ca8ba59..642e1a70 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -3825,6 +3825,8 @@ TableBrowserDock* MainWindow::newTableBrowserTab(const sqlb::ObjectIdentifier& t d->activateWindow(); changeTableBrowserTab(d); + d->tableBrowser()->refresh(); + return d; }