From 2b4741b97da65abcab86f3232e2ba27263efee12 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 12 Jul 2021 18:43:10 +0100 Subject: [PATCH] Fix station ratings tooltip in right click mode See: #298 --- src/station_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 8477a7ad74..41184540bb 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -2950,7 +2950,7 @@ public: void OnMouseLoop() override { - if (!_cursor.in_window || !_mouse_hovering) { + if (!_cursor.in_window || !(_settings_client.gui.hover_delay_ms == 0 ? _right_button_down : _mouse_hovering)) { delete this; } }