Skip to content

Commit

Permalink
dbusmenu: Make D-Bus menus and menu items enabled by default
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Shawn Rutledge <[email protected]>
  • Loading branch information
mitya57 committed Jan 31, 2016
1 parent c7c7a22 commit 1e370a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platformsupport/dbusmenu/qdbusplatformmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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++)
Expand Down

0 comments on commit 1e370a4

Please sign in to comment.