mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-03-26 18:10:02 +00:00
Fix parser segfault
Passing an argument with a double dashed prefix was causing a crash. 'flameshot --gui' instead of 'flameshot gui' now it's handled correctly.
This commit is contained in:
@@ -157,7 +157,7 @@ bool CommandLineParser::processOptions(const QStringList &args,
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (optionIt == actualNode->options.end()) {
|
||||
if (optionIt == endIt) {
|
||||
QString argName = actualNode->argument.name();
|
||||
if (argName.isEmpty()) {
|
||||
argName = qApp->applicationName();
|
||||
|
||||
Reference in New Issue
Block a user