summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-01 12:36:43 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-01 12:36:43 +0100
commit36ca50cb9a5d575d3fb6ea1b5062c2f96a906b4b (patch)
tree4778a655ef24ff200bb3315a2be686c3f6235357 /facetracknoir
parentec3fe4414268acb83c04194247087389c3d1f7f2 (diff)
load right profile when using multiple ones (duh)
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/facetracknoir.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index 08cd9dfa..2bb36a78 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -590,6 +590,10 @@ void FaceTrackNoIR::fill_profile_cbx()
ui.iconcomboProfile->clear();
for ( int i = 0; i < iniFileList.size(); i++) {
ui.iconcomboProfile->addItem(QIcon(":/images/settings16.png"), iniFileList.at(i));
+ if (iniFileList.at(i) == pathInfo.fileName()) {
+ ui.iconcomboProfile->setItemIcon(i, QIcon(":/images/settingsopen16.png"));
+ ui.iconcomboProfile->setCurrentIndex( i );
+ }
}
looping = false;
}