diff options
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r-- | libqmenumodel/src/qmenumodel.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |