X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Femulauncher.cpp;fp=src%2Femulauncher.cpp;h=077b5392b6e54a137115b7eaa321cbf2623b96a2;hb=c71c398282a3f1ec47c7860cfe06c41e201101f9;hp=1529b71dfc8e272abedf53c4bf21f8dabf67ee13;hpb=2553c1783d0e375903ffff23c6cfe6bf63e008a3;p=emufront diff --git a/src/emulauncher.cpp b/src/emulauncher.cpp index 1529b71..077b539 100644 --- a/src/emulauncher.cpp +++ b/src/emulauncher.cpp @@ -27,7 +27,6 @@ #include "setup.h" #include "setupmodel.h" #include "externalexecutablemodel.h" -//#include "dbmediaimagecontainer.h" #include "mediaimagecontainer.h" #include "mediaimagecontainermodel.h" #include "effileobjectcombobox.h" @@ -36,8 +35,9 @@ #include "emuhelper.h" #include "emufrontinputdialog.h" -EmuLauncher::EmuLauncher(QErrorMessage *errorMessage, SetupModel *supModel, QWidget *parent, QString tmp) : - QWidget(parent), supModel(supModel), tmpDirPath(tmp), errorMessage(errorMessage) +EmuLauncher::EmuLauncher(QErrorMessage *errorMessage, SetupModel *supModel, ExternalExecutableModel + *emuModel, QWidget *parent, QString tmp) : + QWidget(parent), supModel(supModel), emuModel(emuModel), tmpDirPath(tmp), errorMessage(errorMessage) { emuHelper = new EmuHelper(this); initWidgets(); @@ -60,8 +60,6 @@ void EmuLauncher::updateData() qDebug() << "EmuLauncher::updateData"; micModel->refresh(); emuModel->refresh(); - supModel->refresh(); - //setupSelectBox->update(); } void EmuLauncher::initWidgets() @@ -80,7 +78,7 @@ void EmuLauncher::initWidgets() setupSelectBox->setModel(supModel); setupSelectBox->setModelColumn(SetupModel::Setup_Name); - emuModel = new ExternalExecutableModel(this); + //emuModel = new ExternalExecutableModel(this); execSelectBox = new QComboBox(this); execSelectBox->setModel(emuModel); execSelectBox->setModelColumn(ExternalExecutableModel::Executable_Name);