qDebug("No executable");
return;
}
+ clear();
if (!ex->getSetup()) {
qDebug() << "No setup";
return;
optEdit->setText(ex->getOptions());
}
+void ExecutableEditDialog::clear()
+{
+ nameEdit->clear();
+ execEdit->clear();
+ optEdit->clear();
+ setupComBox->setCurrentIndex(-1);
+}
+
void ExecutableEditDialog::setSelectedSetup(const Setup *su)
{
setupComBox->setSelected(su);
}
+/* Returns a pointer to a Setup object which must be deleted by calling code! */
Setup* ExecutableEditDialog::getSelectedSetup()
{
EmuFrontObject *o = 0;
try { o = setupComBox->getSelected(); }
- catch(EmuFrontException &e){ QMessageBox::warning(this, "Exception", e.what()); }
+ catch(EmuFrontException &e){ errorMessage->showMessage(e.what()); }
if (!o) return 0;
Setup *ex = dynamic_cast<Setup*>(o);