summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 994dfd29..aafb1992 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -529,7 +529,11 @@ int main(int argc, char *argv[])
arguments.removeAt(profileIndex);
arguments.removeAt(profileIndex);
}
- qDebug("configured profile: %s", qPrintable(selectedProfileName));
+ if (selectedProfileName.isEmpty()) {
+ qDebug("no configured profile");
+ } else {
+ qDebug("configured profile: %s", qPrintable(selectedProfileName));
+ }
// if we have a command line parameter, it is either a nxm link or
// a binary to start