summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-01-29 12:17:13 +0000
committerStanislaw Halik <sthalik@misaki.pl>2013-01-29 12:17:13 +0000
commit67a904976dfa01862c72946921a62a11f299a0fa (patch)
tree45dd001c007340a168f9bb103c252935efd19e8b
parent33c38be354ee6bf71fce13cc883f5b7b82ef3c78 (diff)
Fix the stupid absolute-path-containing-spaces bug once and for all.
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@247 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
-rw-r--r--FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp
index cac2810f..bff35587 100644
--- a/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp
+++ b/FTNoIR_Tracker_HT/ftnoir_tracker_ht.cpp
@@ -162,7 +162,7 @@ void Tracker::StartTracker(HWND parent)
shm->pause = shm->terminate = shm->running = false;
shm->timer = 0;
subprocess.setWorkingDirectory(QCoreApplication::applicationDirPath() + "/tracker-ht");
- subprocess.start(QCoreApplication::applicationDirPath() + "/tracker-ht/headtracker-ftnoir.exe");
+ subprocess.start("\"" + QCoreApplication::applicationDirPath() + "/tracker-ht/headtracker-ftnoir.exe" + "\"");
}
}
@@ -249,7 +249,7 @@ void VideoWidget::paintEvent(QPaintEvent *e)
//-----------------------------------------------------------------------------
void TrackerDll::getFullName(QString *strToBeFilled)
{
- *strToBeFilled = "HT 0.6";
+ *strToBeFilled = "HT 0.7";
}
void TrackerDll::getShortName(QString *strToBeFilled)
@@ -395,12 +395,12 @@ void TrackerControls::save()
}
iniFile.setValue("fps", fps);
iniFile.setValue("camera-index", ui.cameraName->currentIndex() - 1);
- iniFile.setValue("enable-rx", ui.rx->checkState());
- iniFile.setValue("enable-ry", ui.ry->checkState());
- iniFile.setValue("enable-rz", ui.rz->checkState());
- iniFile.setValue("enable-tx", ui.tx->checkState());
- iniFile.setValue("enable-ty", ui.ty->checkState());
- iniFile.setValue("enable-tz", ui.tz->checkState());
+ iniFile.setValue("enable-rx", ui.rx->checkState() != Qt::Unchecked ? true : false);
+ iniFile.setValue("enable-ry", ui.ry->checkState() != Qt::Unchecked ? true : false);
+ iniFile.setValue("enable-rz", ui.rz->checkState() != Qt::Unchecked ? true : false);
+ iniFile.setValue("enable-tx", ui.tx->checkState() != Qt::Unchecked ? true : false);
+ iniFile.setValue("enable-ty", ui.ty->checkState() != Qt::Unchecked ? true : false);
+ iniFile.setValue("enable-tz", ui.tz->checkState() != Qt::Unchecked ? true : false);
iniFile.endGroup();
settingsDirty = false;
}