Qt: workaround for settings_dialog resize

This commit is contained in:
Megamouse 2018-06-16 15:41:11 +02:00 committed by Ivan
parent c3916fee9c
commit dab82b70f7

View File

@ -1236,6 +1236,7 @@ int settings_dialog::exec()
// If we use setCurrentIndex now we will miraculously see a resize of the dialog as soon as we
// switch to the cpu tab after conjuring the settings_dialog with another tab opened first.
// Weirdly enough this won't happen if we change the tab order so that anything else is at index 0.
ui->tab_widget_settings->setCurrentIndex(0);
QTimer::singleShot(0, [=]{ ui->tab_widget_settings->setCurrentIndex(m_tab_Index); });
return QDialog::exec();
}