Qt: I wrote a function for this...

This commit is contained in:
Vicki Pfau 2022-10-31 19:48:51 -07:00
parent 3f24047abb
commit 2b7f5ba4d0
1 changed files with 1 additions and 4 deletions

View File

@ -49,10 +49,7 @@ ForwarderView::ForwarderView(QWidget* parent)
});
m_ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
connect(m_ui.buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked, [this]() {
m_controller.generator()->setRom(m_ui.romFilename->text());
m_controller.startBuild(m_ui.outputFilename->text());
});
connect(m_ui.buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked, this, &ForwarderView::build);
}
void ForwarderView::build() {