Skip to content

Commit

Permalink
Don't call populateTable() twice on startup when it's not needed
Browse files Browse the repository at this point in the history
We need to call MainWindow::populateTable() when an SQL script was
executed during startup to make sure the latest data is shown. There is
however no need to do so when no SQL script was specified.
  • Loading branch information
MKleusberg committed Jun 18, 2013
1 parent b4ce93c commit a6c30fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ int main( int argc, char ** argv )
file.close();
}
}
w.browseRefresh();
if(!sqlToExecute.isEmpty())
w.browseRefresh();
}
}

Expand Down

0 comments on commit a6c30fe

Please sign in to comment.