summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/process_detector.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-03 20:27:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-03 20:27:08 +0200
commitb71978bfb292f31673754fdb6997c0250e0cc361 (patch)
tree24727975e9b8eb6fb8bb949b49ad4591d48272b1 /facetracknoir/process_detector.cpp
parent010247f8b1aa0526d523683e2e94b0bb66130d02 (diff)
process-detector: check when cancel button is pressed
Closes #245
Diffstat (limited to 'facetracknoir/process_detector.cpp')
-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 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)