From 2a5135915982d5f489510a8a7f814cc358763eb8 Mon Sep 17 00:00:00 2001 From: Tibo Clausen Date: Thu, 14 Nov 2019 13:59:03 +0000 Subject: [PATCH] Hide tab before emitting event --- src/DockAreaTabBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DockAreaTabBar.cpp b/src/DockAreaTabBar.cpp index 4b71614..9e48fa8 100644 --- a/src/DockAreaTabBar.cpp +++ b/src/DockAreaTabBar.cpp @@ -525,8 +525,8 @@ void CDockAreaTabBar::closeTab(int Index) { return; } - emit tabCloseRequested(Index); Tab->hide(); + emit tabCloseRequested(Index); }