Do not reload not needed information when changing the current tab

Do not query the table selected in the browse data tab when changing to
the database structure tab and vice versa.
This commit is contained in:
Martin Kleusberg
2013-01-01 15:48:09 +01:00
parent c68900030b
commit 9a9d32a5a7

View File

@@ -953,11 +953,10 @@ void MainWindow::executeQuery()
void MainWindow::mainTabSelected(int tabindex)
{
if ((tabindex == 0)||(tabindex == 1))
{
if(tabindex == 0)
populateStructure();
else if(tabindex == 1)
resetBrowser();
}
}
void MainWindow::importTableFromCSV()