mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Plot: Load all data before drawing a plot
Load all table data first, before drawing a plot. Otherwise the plot might be incomplete because not all data is loaded yet due to partial table loading. See issue #499.
This commit is contained in:
@@ -1682,6 +1682,10 @@ void MainWindow::updatePlot(SqliteTableModel *model, bool update)
|
||||
|
||||
if(model)
|
||||
{
|
||||
// Make sure all data is loaded before trying to plot anything
|
||||
while(model->canFetchMore())
|
||||
model->fetchMore();
|
||||
|
||||
for(int i = 0; i < model->columnCount(); ++i)
|
||||
{
|
||||
QVariant::Type columntype = guessdatatype(model, i);
|
||||
|
||||
Reference in New Issue
Block a user