From b71978bfb292f31673754fdb6997c0250e0cc361 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 3 Oct 2015 20:27:08 +0200 Subject: process-detector: check when cancel button is pressed Closes #245 --- facetracknoir/process_detector.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'facetracknoir') diff --git a/facetracknoir/process_detector.cpp b/facetracknoir/process_detector.cpp index 19611241..59a40f03 100644 --- a/facetracknoir/process_detector.cpp +++ b/facetracknoir/process_detector.cpp @@ -67,7 +67,8 @@ void BrowseButton::browse() tr("Executable (*.exe);;All Files (*)")); MainWindow::set_working_directory(); filename = QFileInfo(filename).fileName(); - twi->setText(filename); + if (!filename.isNull()) + twi->setText(filename); } int process_detector::add_row(QString exe_name, QString profile) -- cgit v1.2.3