forked from osmocom/wireshark
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>
This commit is contained in:
parent
c5560babbd
commit
682fe39422
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue