summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-03 17:07:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-03 17:07:06 +0200
commitfaeb69bea8f7601d5e941fc872910641aa603628 (patch)
tree599067b5f940e808f306a8b42076c43ebbe0d1b0 /facetracknoir
parent8c43f5ad67f75c2160cd37209dbe93c7fe4e97f4 (diff)
game-detector: prevent defaulting to first profile if one doesn't exist
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/process_detector.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/facetracknoir/process_detector.cpp b/facetracknoir/process_detector.cpp
index 79b5c95f..8efc0c10 100644
--- a/facetracknoir/process_detector.cpp
+++ b/facetracknoir/process_detector.cpp
@@ -68,6 +68,7 @@ int process_detector::add_row(QString exe_name, QString profile)
QComboBox* cb = new QComboBox();
cb->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Maximum);
+ cb->addItem("");
cb->addItems(group::ini_list());
ui.tableWidget->setCellWidget(i, 1, cb);
@@ -222,7 +223,7 @@ bool process_detector_worker::config_to_start(QString& str)
{
last_exe_name = name;
str = filenames[name];
- return true;
+ return str != "";
}
}