summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)