diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-01-18 08:46:41 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2018-01-18 18:56:16 +0000 |
commit | 682fe39422b01fe850a8718766766f5f32ecf908 (patch) | |
tree | d833d49e302b43f3aeb8103ee6b939e229da2c8b /ui/qt/io_graph_dialog.cpp | |
parent | c5560babbd2656f49b5dc8a32f6c2ea67a276d57 (diff) |
Qt: Fixup a cast.
Change-Id: I25dbf6c91bd3ca1f16a01c937a3830010adcd197
Reviewed-on: https://code.wireshark.org/review/25373
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jim Young <jim.young.ws@gmail.com>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/io_graph_dialog.cpp')
-rw-r--r-- | ui/qt/io_graph_dialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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>(); + Qt::CheckState state = static_cast<Qt::CheckState>(uat_model_->data(uat_model_->index(row, colEnabled), Qt::CheckStateRole).toInt()); return state == Qt::Checked; } |