diff options
Diffstat (limited to 'utils/themeeditor/gui')
-rw-r--r-- | utils/themeeditor/gui/devicestate.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/themeeditor/gui/devicestate.cpp b/utils/themeeditor/gui/devicestate.cpp index 21f95bfa10..89985bf730 100644 --- a/utils/themeeditor/gui/devicestate.cpp +++ b/utils/themeeditor/gui/devicestate.cpp | |||
@@ -474,10 +474,14 @@ void DeviceState::setData(QString tag, QVariant data) | |||
474 | break; | 474 | break; |
475 | 475 | ||
476 | case Combo: | 476 | case Combo: |
477 | dynamic_cast<QComboBox*> | 477 | if(data.type() == QVariant::String) |
478 | (found.second)-> | 478 | dynamic_cast<QComboBox*> |
479 | setCurrentIndex(dynamic_cast<QComboBox*> | 479 | (found.second)-> |
480 | (found.second)->findText(data.toString())); | 480 | setCurrentIndex(dynamic_cast<QComboBox*> |
481 | (found.second)->findText(data.toString())); | ||
482 | else | ||
483 | dynamic_cast<QComboBox*>(found.second)-> | ||
484 | setCurrentIndex(data.toInt()); | ||
481 | break; | 485 | break; |
482 | 486 | ||
483 | case Check: | 487 | case Check: |