From 9a9d32a5a7bfdb5d26eb21ce4890bf235a06357a Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Tue, 1 Jan 2013 15:48:09 +0100 Subject: [PATCH] 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. --- src/mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 683061b3..75422140 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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()