From 2e39525782e0f549b9e915aafda54aed07c198a6 Mon Sep 17 00:00:00 2001 From: Delhove Erwan Date: Tue, 27 Oct 2020 09:20:18 +0100 Subject: [PATCH] Fix tab close button remain pushed issue Fix #7750, close #9062 --- PowerEditor/src/WinControls/TabBar/TabBar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PowerEditor/src/WinControls/TabBar/TabBar.cpp b/PowerEditor/src/WinControls/TabBar/TabBar.cpp index 45f2cd649..3d7cbe342 100644 --- a/PowerEditor/src/WinControls/TabBar/TabBar.cpp +++ b/PowerEditor/src/WinControls/TabBar/TabBar.cpp @@ -709,6 +709,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara else if (iTabNow != -1 && _currentHoverTabItem != -1 && _currentHoverTabItem != iTabNow) // mouse is being moved from a tab and entering into another tab { isFromTabToTab = true; + _whichCloseClickDown = -1; // set current hovered _currentHoverTabItem = iTabNow; @@ -766,6 +767,7 @@ LRESULT TabBarPlus::runProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lPara InvalidateRect(hwnd, &_currentHoverTabRect, FALSE); _currentHoverTabItem = -1; + _whichCloseClickDown = -1; SetRectEmpty(&_currentHoverTabRect); _isCloseHover = false;