Qt: always set the current tab on startup

This commit is contained in:
Brad Parker 2018-07-28 18:46:51 -04:00
parent e579842620
commit 978edc7acf
1 changed files with 5 additions and 8 deletions

View File

@ -534,8 +534,6 @@ static void* ui_companion_qt_init(void)
/* setting the last tab must come after setting the view type */
if (qsettings->contains("save_last_tab"))
{
if (qsettings->contains("last_tab"))
{
int lastTabIndex = qsettings->value("last_tab", 0).toInt();
@ -545,7 +543,6 @@ static void* ui_companion_qt_init(void)
mainwindow->onTabWidgetIndexChanged(lastTabIndex);
}
}
}
else
{
browserAndPlaylistTabWidget->setCurrentIndex(0);