Skip to content

Commit 8690b8a

Browse files
committed
Fix bug to load pragma list when pragmas tab is activated
Regression bug since 28ae741
1 parent 943a81f commit 8690b8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MainWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,9 @@ bool MainWindow::fileOpen(const QString& fileName, bool openFromProject, bool re
585585
// loadProject will init the rest
586586
return true;
587587
}
588-
if(ui->tabSqlAreas->count() == 0)
588+
if(ui->tabSqlAreas->count() == 0) // Create a new tab if there isn't one.
589589
openSqlTab(true);
590-
else if(ui->mainTab->currentWidget() == ui->pragmas)
590+
if(ui->mainTab->currentWidget() == ui->pragmas)
591591
loadPragmas();
592592

593593
refreshTableBrowsers();

0 commit comments

Comments
 (0)