From 73051af2518e17e12d6f5619475ae84a4dabeb5a Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 23 Jun 2020 23:04:12 -0500 Subject: [PATCH] Select the main tab by default, not the fan tab --- qt/OpenRGBDialog2/OpenRGBDialog2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp index 08af12171..246e0832f 100644 --- a/qt/OpenRGBDialog2/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2/OpenRGBDialog2.cpp @@ -1164,6 +1164,12 @@ void OpenRGBDialog2::ClearDevicesList() ui->InformationTabBar->removeTab(tab_idx); } } + + for(int tab_idx = 0; tab_idx < ui->FanTabBar->count(); tab_idx++) + { + delete ui->FanTabBar->widget(tab_idx); + } + ui->FanTabBar->clear(); } void OpenRGBDialog2::UpdateDevicesList()