MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / updateDialogState

Method updateDialogState

launcher/ui/dialogs/NewInstanceDialog.cpp:267–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void NewInstanceDialog::updateDialogState()
268{
269 auto allowOK = creationTask && !instName().isEmpty();
270 auto OkButton = m_buttons->button(QDialogButtonBox::Ok);
271 if (OkButton->isEnabled() != allowOK) {
272 OkButton->setEnabled(allowOK);
273 }
274}
275
276QString NewInstanceDialog::instName() const
277{

Callers

nothing calls this directly

Calls 3

isEnabledMethod · 0.80
setEnabledMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected