From 1427c8bf3fc00e285db9d48d340791b1ed8ab132 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Tue, 3 Aug 2021 19:24:45 +0200 Subject: [PATCH] Check if arguments are empty --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 466a2c4ac..fc152da3f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -123,6 +123,9 @@ int main(int argc, char *argv[]) &RoomManager::instance(), [](const QStringList &arguments, const QString &workingDirectory) { Q_UNUSED(workingDirectory); + if(arguments.isEmpty()) { + return; + } auto args = arguments; args.removeFirst(); for (const auto &arg : args) {