mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-06 20:09:54 -05:00
Use the correct function for checking the count of plotted items
Now that the plot may contain graphs and curves, the plottableCount() function must be used instead of graphCount() for checking whether the plot has any plotted items. This had the effect reported in issue #821 of breaking the enable check for the fetch-all button.
This commit is contained in:
+1
-1
@@ -326,7 +326,7 @@ void PlotDock::updatePlot(SqliteTableModel* model, BrowseDataTableSettings* sett
|
||||
ui->plotWidget->replot();
|
||||
|
||||
// Warn user if not all data has been fetched and hint about the button for loading all the data
|
||||
if (ui->plotWidget->graphCount() > 0 && model->canFetchMore()) {
|
||||
if (ui->plotWidget->plottableCount() > 0 && model->canFetchMore()) {
|
||||
ui->buttonLoadAllData->setEnabled(true);
|
||||
ui->buttonLoadAllData->setStyleSheet("QToolButton {color: white; background-color: rgb(255, 102, 102)}");
|
||||
ui->buttonLoadAllData->setToolTip(tr("Load all data and redraw plot.\n"
|
||||
|
||||
Reference in New Issue
Block a user