diff options
author | Alberto Mardegan <alberto.mardegan@canonical.com> | 2013-05-23 11:44:41 +0300 |
---|---|---|
committer | Alberto Mardegan <alberto.mardegan@canonical.com> | 2013-05-23 11:44:41 +0300 |
commit | 8157af28188959d105f13657886517ea90fcb37e (patch) | |
tree | efd39ec072b094f38e220e9dfdc24257135e2f73 /libqmenumodel | |
parent | c5bcb297490b44429997c9658d0afb12900cef42 (diff) | |
download | qmenumodel-8157af28188959d105f13657886517ea90fcb37e.tar.gz qmenumodel-8157af28188959d105f13657886517ea90fcb37e.tar.bz2 qmenumodel-8157af28188959d105f13657886517ea90fcb37e.zip |
style
Diffstat (limited to 'libqmenumodel')
-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); } |