dbusmenu: Make D-Bus menus and menu items enabled by default
There is no reason why they should be disabled, and also the current behavior breaks the D-Bus platform menu bar implementation. Change-Id: I8a8b5b6a66e40f1f1a25394dc87ac2178c7907fa Reviewed-by: Martin Klapetek <mklapetek@kde.org> Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>bb10
parent
c7c7a22bb4
commit
1e370a45bf
|
|
@ -49,7 +49,7 @@ QDBusPlatformMenuItem::QDBusPlatformMenuItem(quintptr tag)
|
|||
: m_tag(tag ? tag : reinterpret_cast<quintptr>(this)) // QMenu will overwrite this later
|
||||
, m_subMenu(Q_NULLPTR)
|
||||
, m_role(NoRole)
|
||||
, m_isEnabled(false)
|
||||
, m_isEnabled(true)
|
||||
, m_isVisible(true)
|
||||
, m_isSeparator(false)
|
||||
, m_isCheckable(false)
|
||||
|
|
@ -146,7 +146,7 @@ QList<const QDBusPlatformMenuItem *> QDBusPlatformMenuItem::byIds(const QList<in
|
|||
|
||||
QDBusPlatformMenu::QDBusPlatformMenu(quintptr tag)
|
||||
: m_tag(tag ? tag : reinterpret_cast<quintptr>(this))
|
||||
, m_isEnabled(false)
|
||||
, m_isEnabled(true)
|
||||
, m_isVisible(true)
|
||||
, m_isSeparator(false)
|
||||
, m_dbusID(nextDBusID++)
|
||||
|
|
|
|||
Loading…
Reference in New Issue