From 65d77ff317facdd4f192eead8b8ad5357803b767 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 24 Mar 2017 19:25:01 +0000 Subject: (svn r27826) -Fix (r27825): Wrong code style --- src/window.cpp | 7 ++----- 1 file 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); } } -- cgit v1.2.3-70-g09d2