summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 51faa0670..dcc16d8d6 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -195,7 +195,9 @@ void CylindersModel::passInData(const QModelIndex& index, const QVariant& value)
}
}
-#define CHANGED(_t,_u1,_u2) value._t() != data(index, role).toString().remove(_u1).remove(_u2)._t()
+#define CHANGED(_t,_u1,_u2) \
+ value.toString().remove(_u1).remove(_u2)._t() != \
+ data(index, role).toString().remove(_u1).remove(_u2)._t()
bool CylindersModel::setData(const QModelIndex& index, const QVariant& value, int role)
{