From 8157af28188959d105f13657886517ea90fcb37e Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Thu, 23 May 2013 11:44:41 +0300 Subject: style --- libqmenumodel/src/qmenumodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libqmenumodel/src/qmenumodel.cpp') diff --git a/libqmenumodel/src/qmenumodel.cpp b/libqmenumodel/src/qmenumodel.cpp index ed2fd47..9bc9e02 100644 --- a/libqmenumodel/src/qmenumodel.cpp +++ b/libqmenumodel/src/qmenumodel.cpp @@ -252,7 +252,9 @@ void QMenuModel::onItemsChanged(MenuNode *node, /*! \internal */ QModelIndex QMenuModel::indexFromNode(MenuNode *node) const { - if (node == m_root) return QModelIndex(); + if (node == m_root) { + return QModelIndex(); + } return createIndex(node->position(), 0, node); } -- cgit v1.2.3