From 682fe39422b01fe850a8718766766f5f32ecf908 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 18 Jan 2018 08:46:41 -0800 Subject: [PATCH] Qt: Fixup a cast. Change-Id: I25dbf6c91bd3ca1f16a01c937a3830010adcd197 Reviewed-on: https://code.wireshark.org/review/25373 Petri-Dish: Gerald Combs Tested-by: Petri Dish Buildbot Reviewed-by: Jim Young Reviewed-by: Gerald Combs --- ui/qt/io_graph_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }