summaryrefslogtreecommitdiffstats
path: root/src
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 /src
parentb1816beb09cacde0f16ebf6e9bfc08aa8f72a8c0 (diff)
Ignore cmdline arguments if -session is used.
Fixes #320
Diffstat (limited to 'src')
-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();
}
33734a6de88d48c8cf3d429e4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115