diff options
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r-- | libqmenumodel/src/qstateaction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libqmenumodel/src/qstateaction.cpp b/libqmenumodel/src/qstateaction.cpp index 40d70a5..983064a 100644 --- a/libqmenumodel/src/qstateaction.cpp +++ b/libqmenumodel/src/qstateaction.cpp @@ -62,9 +62,8 @@ QStateAction::QStateAction(QDBusActionGroup *group, const QString &name) - bool isValid = m_group->hasAction(name); - setValid(isValid); - if (isValid) { + m_valid = m_group->hasAction(name); + if (m_valid) { setState(m_group->actionState(name)); } } |