mirror of https://github.com/mgba-emu/mgba.git
Qt: I wrote a function for this...
This commit is contained in:
parent
3f24047abb
commit
2b7f5ba4d0
|
@ -49,10 +49,7 @@ ForwarderView::ForwarderView(QWidget* parent)
|
||||||
});
|
});
|
||||||
|
|
||||||
m_ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
m_ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||||
connect(m_ui.buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked, [this]() {
|
connect(m_ui.buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked, this, &ForwarderView::build);
|
||||||
m_controller.generator()->setRom(m_ui.romFilename->text());
|
|
||||||
m_controller.startBuild(m_ui.outputFilename->text());
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ForwarderView::build() {
|
void ForwarderView::build() {
|
||||||
|
|
Loading…
Reference in New Issue