From faeb69bea8f7601d5e941fc872910641aa603628 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 Jul 2015 17:07:06 +0200 Subject: game-detector: prevent defaulting to first profile if one doesn't exist --- facetracknoir/process_detector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 != ""; } } -- cgit v1.2.3