From: gregor herrmann Date: Wed, 17 Oct 2012 21:21:17 +0000 (+0000) Subject: When ConfClerk is called with arguments (alarm), check for >= 3. X-Git-Tag: 0.6.0~28 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/cdbdad788463a92a7b66daced76fc27ab3d44f58 When ConfClerk is called with arguments (alarm), check for >= 3. Alarmd seems to add an additional argument. --- diff --git a/src/app/main.cpp b/src/app/main.cpp index d48ec09..277cd6b 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) QWidget* window = new MainWindow; // If we were started with the parameters confernceid and eventid, show the corresponding event (alarm) - if (argc == 3) { + if (argc >= 3) { QString conferenceIdStr = argv[1]; QString eventIdStr = argv[2]; EventDialog dialog(conferenceIdStr.toInt(), eventIdStr.toInt(), window);