From 9f6581205cc80f58a436be8c17e169360c41b7f4 Mon Sep 17 00:00:00 2001 From: Nodir Temirkhodjaev Date: Sat, 12 Mar 2022 12:14:56 +0300 Subject: [PATCH] UI: Options: Update app's group after removing --- src/ui/form/opt/pages/applicationspage.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/form/opt/pages/applicationspage.cpp b/src/ui/form/opt/pages/applicationspage.cpp index c7c7820f..2a2fb95f 100644 --- a/src/ui/form/opt/pages/applicationspage.cpp +++ b/src/ui/form/opt/pages/applicationspage.cpp @@ -284,7 +284,12 @@ void ApplicationsPage::setupTabBar() return; conf()->removeAppGroup(index, index); + + const int tabIndex = m_tabBar->currentIndex(); m_tabBar->removeTab(index); + if (tabIndex == m_tabBar->currentIndex()) { + emit appGroupChanged(); + } ctrl()->setOptEdited(); });