From afd74c628e408901786c6fa46503f55f02d846e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mikko=20Kein=C3=A4nen?= Date: Mon, 13 Dec 2010 01:58:28 +0200 Subject: [PATCH] Added TODO. --- src/emulauncher.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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!")); -- 1.7.9.5