NOISSUE Connect signal in code instead of ui file

This commit is contained in:
arthomnix 2023-05-23 16:47:27 +01:00
parent d6dabfa67d
commit 72e62058c0
2 changed files with 2 additions and 16 deletions

View File

@ -72,6 +72,8 @@ CreateShortcutDialog::CreateShortcutDialog(QWidget *parent, InstancePtr instance
ui->createScriptCheckBox->setChecked(true);
#endif
connect(ui->joinWorldCheckBox, &QCheckBox::toggled, this, &CreateShortcutDialog::updateDialogState);
updateDialogState();
}

View File

@ -454,22 +454,6 @@
</hint>
</hints>
</connection>
<connection>
<sender>joinWorldCheckBox</sender>
<signal>toggled(bool)</signal>
<receiver>CreateShortcutDialog</receiver>
<slot>updateDialogState()</slot>
<hints>
<hint type="sourcelabel">
<x>140</x>
<y>59</y>
</hint>
<hint type="destinationlabel">
<x>397</x>
<y>164</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>updateDialogState()</slot>