-- Best regards, Guido
From 6121bdb8543fd067188e793837e577edef912ede Mon Sep 17 00:00:00 2001 From: Guido Lerch <guido.le...@gmail.com> Date: Thu, 22 Oct 2015 00:42:30 +0200 Subject: [PATCH 2/2] Fixing warnings about braces in cylindermodel.cpp-2
Morace braces needed.Sorry Signed-off-by: Guido Lerch <guido.le...@gmail.com> --- qt-models/cylindermodel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index c697145..7992545 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -111,20 +111,22 @@ QVariant CylindersModel::data(const QModelIndex &index, int role) const } break; case Qt::DecorationRole: - if (index.column() == REMOVE) + if (index.column() == REMOVE) { if (rowCount() > 1) { ret = trashIcon(); } else { ret = trashForbiddenIcon(); } + } break; case Qt::SizeHintRole: - if (index.column() == REMOVE) + if (index.column() == REMOVE) { if (rowCount() > 1) { ret = trashIcon(); } else { ret = trashForbiddenIcon(); } + } break; case Qt::ToolTipRole: -- 2.3.8 (Apple Git-58)
_______________________________________________ subsurface mailing list subsurface@subsurface-divelog.org http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface