Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/zones/ZoneContextMenuInteraction.cpp b/zones/ZoneContextMenuInteraction.cpp
- index fd47b54..763ac06 100644
- --- a/zones/ZoneContextMenuInteraction.cpp
- +++ b/zones/ZoneContextMenuInteraction.cpp
- @@ -112,6 +112,10 @@ ZoneContextMenuInteraction::ZoneContextMenuInteraction(
- interaction.capture(m_interaction);
- +#ifdef Q_WS_MAC
- + m_extraDelaysDone = 0;
- +#endif
- +
- int h = 20;
- int const h_step = 65;
- int const s = 255 * 64 / 100;
- @@ -193,6 +197,13 @@ ZoneContextMenuInteraction::menuAboutToHide()
- return;
- }
- +#ifdef Q_WS_MAC
- + if (m_extraDelaysDone++ < 1) {
- + QTimer::singleShot(200, this, SLOT(menuAboutToHide()));
- + return;
- + }
- +#endif
- +
- InteractionHandler* next_handler = m_rContext.createDefaultInteraction();
- if (next_handler) {
- makePeerPreceeder(*next_handler);
- diff --git a/zones/ZoneContextMenuInteraction.h b/zones/ZoneContextMenuInteraction.h
- index 3173b02..dbeee22 100644
- --- a/zones/ZoneContextMenuInteraction.h
- +++ b/zones/ZoneContextMenuInteraction.h
- @@ -131,6 +131,9 @@ private:
- std::auto_ptr<QMenu> m_ptrMenu;
- int m_highlightedZoneIdx;
- bool m_menuItemTriggered;
- +#ifdef Q_WS_MAC
- + int m_extraDelaysDone;
- +#endif
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement