mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-03-31 20:40:58 +00:00
Exit non-zero when aborting with --raw. (#424)
This fixes #302. Note that I also added a non-zero exit status when DBus fails to connect.
This commit is contained in:
@@ -235,7 +235,7 @@ int main(int argc, char *argv[]) {
|
||||
&QCoreApplication::quit);
|
||||
t.start();
|
||||
// wait
|
||||
app.exec();
|
||||
return app.exec();
|
||||
}
|
||||
}
|
||||
else if (parser.isSet(fullArgument)) { // FULL
|
||||
@@ -282,7 +282,7 @@ int main(int argc, char *argv[]) {
|
||||
&QCoreApplication::quit);
|
||||
t.start();
|
||||
// wait
|
||||
app.exec();
|
||||
return app.exec();
|
||||
}
|
||||
}
|
||||
else if (parser.isSet(screenArgument)) { // SCREEN
|
||||
@@ -332,7 +332,7 @@ int main(int argc, char *argv[]) {
|
||||
&QCoreApplication::quit);
|
||||
t.start();
|
||||
// wait
|
||||
app.exec();
|
||||
return app.exec();
|
||||
}
|
||||
}
|
||||
else if (parser.isSet(configArgument)) { // CONFIG
|
||||
|
||||
Reference in New Issue
Block a user