summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 272361285..8378f60f7 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -773,12 +773,9 @@ static void DispatchRightClickEvent(Window *w, int x, int y)
}
/* Right-click close is enabled and there is a closebox */
- if (_settings_client.gui.right_mouse_wnd_close && w->nested_root->GetWidgetOfType(WWT_CLOSEBOX))
- {
+ if (_settings_client.gui.right_mouse_wnd_close && w->nested_root->GetWidgetOfType(WWT_CLOSEBOX)) {
delete w;
- }
- else if (_settings_client.gui.hover_delay_ms == 0 && wid->tool_tip != 0)
- {
+ } else if (_settings_client.gui.hover_delay_ms == 0 && wid->tool_tip != 0) {
GuiShowTooltips(w, wid->tool_tip, 0, NULL, TCC_RIGHT_CLICK);
}
}