From: Mikko Keinänen Date: Sun, 12 Dec 2010 23:58:28 +0000 (+0200) Subject: Added TODO. X-Git-Url: http://vcs.maemo.org/git/?p=emufront;a=commitdiff_plain;h=afd74c628e408901786c6fa46503f55f02d846e7 Added TODO. --- diff --git a/src/emulauncher.cpp b/src/emulauncher.cpp index 04d0ffc..2a9e40a 100644 --- a/src/emulauncher.cpp +++ b/src/emulauncher.cpp @@ -190,9 +190,9 @@ void EmuLauncher::launchEmu() if (!micTable || !micTable->model()) { throw EmuFrontException(tr("No search results available!")); } - /*if (!execSelectBox || execSelectBox->currentIndex() == -1) { + if (!execSelectBox || execSelectBox->currentIndex() == -1) { throw EmuFrontException(tr("Emulator not selected!")); - }*/ + } QItemSelectionModel *selModel = micTable->selectionModel(); QModelIndexList listMIndex = selModel->selectedIndexes(); if (listMIndex.count() < 1) { @@ -200,6 +200,7 @@ void EmuLauncher::launchEmu() } qDebug() << listMIndex.count() << " items selected."; + // TODO: write a method to ExternalExecutable to return an Executable object of a selected row. /*EmuFrontObject *obExe = execSelectBox->getSelected(); if (!obExe) { throw EmuFrontException(tr("Failed fetching selected emulator!"));