Qt: workaround for settings_dialog resize
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user