diff options
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 71e0ec19d..ae156cbbc 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -92,14 +92,8 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const case Qt::FontRole: { QFont font = defaultModelFont(); switch (index.column()) { - case START: - if (!cyl->start.mbar) - font.setItalic(true); - break; - case END: - if (!cyl->end.mbar) - font.setItalic(true); - break; + case START: font.setItalic(!cyl->start.mbar); break; + case END: font.setItalic(!cyl->end.mbar); break; } ret = font; break; |