Fix crash on saving settings
Thanks Initiate for actually fixing this
This commit is contained in:
parent
609fedfbf4
commit
5bd8c960c9
@ -217,6 +217,17 @@ AOOptionsDialog::AOOptionsDialog(QWidget *parent, AOApplication *p_ao_app)
|
||||
ui_language_combobox->addItem("ru - Русский");
|
||||
ui_gameplay_form->setWidget(11, QFormLayout::FieldRole, ui_language_combobox);
|
||||
|
||||
ui_pun_delay = new QLabel(ui_form_layout_widget);
|
||||
ui_pun_delay->setText(tr("Punctation Delay:"));
|
||||
ui_pun_delay->setToolTip(tr("Punctation delay modifier."
|
||||
" Set it to 1 for no additional delay."));
|
||||
ui_pun_delay_spinbox = new QSpinBox(ui_form_layout_widget);
|
||||
ui_pun_delay_spinbox->setMinimum(1);
|
||||
ui_pun_delay_spinbox->setMaximum(3);
|
||||
ui_pun_delay_spinbox->setValue(p_ao_app->get_pundelay());
|
||||
ui_gameplay_form->setWidget(12, QFormLayout::FieldRole, ui_pun_delay_spinbox);
|
||||
ui_gameplay_form->setWidget(12, QFormLayout::LabelRole, ui_pun_delay);
|
||||
|
||||
// Here we start the callwords tab.
|
||||
ui_callwords_tab = new QWidget();
|
||||
ui_settings_tabs->addTab(ui_callwords_tab, tr("Callwords"));
|
||||
|
Loading…
Reference in New Issue
Block a user