diff --git a/ui/qt/io_graph_dialog.cpp b/ui/qt/io_graph_dialog.cpp index 22b7924653..749ceb2420 100644 --- a/ui/qt/io_graph_dialog.cpp +++ b/ui/qt/io_graph_dialog.cpp @@ -805,7 +805,7 @@ IOGraph *IOGraphDialog::currentActiveGraph() const bool IOGraphDialog::graphIsEnabled(int row) const { - Qt::CheckState state = uat_model_->data(uat_model_->index(row, colEnabled), Qt::CheckStateRole).value(); + Qt::CheckState state = static_cast(uat_model_->data(uat_model_->index(row, colEnabled), Qt::CheckStateRole).toInt()); return state == Qt::Checked; }