summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAchim Herwig <achim.herwig@wodca.de>2017-09-08 12:10:05 +0200
committerAchim Herwig <achim.herwig@tngtech.com>2017-09-08 12:53:20 +0200
commitb03656f68cac2f5c0a4fa43e32c31101df68ef73 (patch)
tree9319ecd205c634a6cc2409a5e171c5ff963b16d2
parentb1816beb09cacde0f16ebf6e9bfc08aa8f72a8c0 (diff)
Ignore cmdline arguments if -session is used.
Fixes #320
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index c8720e6f..8a18409c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -43,7 +43,7 @@ int main(int argc, char *argv[]) {
text += argv[i];
}
- if (text.indexOf("-psn_") == 0) {
+ if ((text.indexOf("-psn_") == 0) || (text.indexOf("-session") == 0)) {
text.clear();
}