diff --git a/subsurface-mobile-main.cpp b/subsurface-mobile-main.cpp index f32f11edc..68830a5cf 100644 --- a/subsurface-mobile-main.cpp +++ b/subsurface-mobile-main.cpp @@ -31,7 +31,7 @@ int main(int argc, char **argv) for (i = 1; i < arguments.length(); i++) { QString a = arguments.at(i); - if (a.at(0) == '-') { + if (!a.isEmpty() && a.at(0) == '-') { parse_argument(a.toLocal8Bit().data()); continue; }