diff --git a/source/gui/IGUIButtonBehavior.cpp b/source/gui/IGUIButtonBehavior.cpp
index 7f658c8..e41f450 100644
a
|
b
|
void IGUIButtonBehavior::HandleMessage(SGUIMessage& Message)
|
79 | 79 | break; |
80 | 80 | |
81 | 81 | case GUIM_MOUSE_DBLCLICK_RIGHT: |
82 | | if (!enabled) |
83 | | break; |
84 | | |
85 | 82 | // Since GUIM_MOUSE_PRESS_RIGHT also gets called twice in a |
86 | 83 | // doubleclick event, we let it handle playing sounds. |
87 | 84 | SendEvent(GUIM_DOUBLE_PRESSED_MOUSE_RIGHT, "doublepressright"); |
88 | 85 | break; |
89 | 86 | |
90 | 87 | case GUIM_MOUSE_PRESS_RIGHT: |
91 | | if (!enabled) |
92 | | { |
93 | | if (g_SoundManager && GUI<CStrW>::GetSetting(this, "sound_disabled", soundPath) == PSRETURN_OK && !soundPath.empty()) |
94 | | g_SoundManager->PlayAsUI(soundPath.c_str(), false); |
95 | | break; |
96 | | } |
97 | | |
98 | | // Button was right-clicked |
| 88 | // Button was right-clicked; right clicks are allowed even on disabled buttons |
99 | 89 | if (g_SoundManager && GUI<CStrW>::GetSetting(this, "sound_pressed", soundPath) == PSRETURN_OK && !soundPath.empty()) |
100 | 90 | g_SoundManager->PlayAsUI(soundPath.c_str(), false); |
101 | 91 | SendEvent(GUIM_PRESSED_MOUSE_RIGHT, "pressright"); |
… |
… |
void IGUIButtonBehavior::HandleMessage(SGUIMessage& Message)
|
103 | 93 | break; |
104 | 94 | |
105 | 95 | case GUIM_MOUSE_RELEASE_RIGHT: |
106 | | if (!enabled) |
107 | | break; |
108 | | |
109 | 96 | if (m_PressedRight) |
110 | 97 | { |
111 | 98 | m_PressedRight = false; |