diff options
Diffstat (limited to 'qt-models/weightmodel.cpp')
-rw-r--r-- | qt-models/weightmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-models/weightmodel.cpp b/qt-models/weightmodel.cpp index 66c8158c4..0c91c467d 100644 --- a/qt-models/weightmodel.cpp +++ b/qt-models/weightmodel.cpp @@ -114,14 +114,14 @@ bool WeightModel::setData(const QModelIndex &index, const QVariant &value, int r } } if (ws_info[i].name == NULL) // didn't find a match - ws->description = strdup(vString.toUtf8().constData()); + ws->description = strdup(qPrintable(vString)); changed = true; } } break; case WEIGHT: if (CHANGED()) { - ws->weight = string_to_weight(vString.toUtf8().data()); + ws->weight = string_to_weight(qPrintable(vString)); // now update the ws_info changed = true; WSInfoModel *wsim = WSInfoModel::instance(); |