projects
/
emufront
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4205845
)
Added TODO.
author
Mikko Keinänen
<mikko.keinanen@gmail.com>
Sun, 12 Dec 2010 23:58:28 +0000
(
01:58
+0200)
committer
Mikko Keinänen
<mikko.keinanen@gmail.com>
Sun, 12 Dec 2010 23:58:28 +0000
(
01:58
+0200)
src/emulauncher.cpp
patch
|
blob
|
history
diff --git
a/src/emulauncher.cpp
b/src/emulauncher.cpp
index
04d0ffc
..
2a9e40a
100644
(file)
--- 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 (!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!"));
throw EmuFrontException(tr("Emulator not selected!"));
- }*/
+ }
QItemSelectionModel *selModel = micTable->selectionModel();
QModelIndexList listMIndex = selModel->selectedIndexes();
if (listMIndex.count() < 1) {
QItemSelectionModel *selModel = micTable->selectionModel();
QModelIndexList listMIndex = selModel->selectedIndexes();
if (listMIndex.count() < 1) {
@@
-200,6
+200,7
@@
void EmuLauncher::launchEmu()
}
qDebug() << listMIndex.count() << " items selected.";
}
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!"));
/*EmuFrontObject *obExe = execSelectBox->getSelected();
if (!obExe) {
throw EmuFrontException(tr("Failed fetching selected emulator!"));