return false;
}
-bool DbSetup::deleteDataObject(int id) const
+/*bool DbSetup::deleteDataObject(int id) const
{
int c = countDataObjectRefs(id);
if (c != 0)
q.prepare(QString("DELETE FROM setup WHERE id=:id"));
q.bindValue(":id", id);
return q.exec();
-}
+}*/
QSqlQueryModel* DbSetup::getData()
{
virtual QString constructSelectById(int id) const;
virtual QString constructFilterById(int id) const;
virtual QString constructSelect(QString whereClause = "") const;
- virtual bool deleteDataObject(int id) const;
+ //virtual bool deleteDataObject(int id) const;
private:
virtual QSqlQueryModel* getData();
// Executable and MediaImageContainer objects are no more needed:
delete ex;
delete mic;
- if (!proc) proc = new QProcess(this); // This has to be done in the heap
+ if (!proc) {
+ proc = new QProcess(this); // This has to be done in the heap
+ connect(proc, SIGNAL(error(QProcess::ProcessError)), this, SLOT(processError()));
+ }
proc->start(cmdWithParams, QIODevice::ReadOnly);
}
+
+void EmuLauncher::processError()
+{
+ QMessageBox::warning(this, tr("Emulator"),
+ tr("Launching emulator failed with: ").append(proc->errorString()), QMessageBox::Ok );
+}