/*
* Copyright (C) 2010 Ixonos Plc.
- * Copyright (C) 2011-2012 Philipp Spitzer, gregor herrmann, Stefan Stahl
+ * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl
*
* This file is part of ConfClerk.
*
QCoreApplication::setApplicationName("ConfClerk");
QCoreApplication::setApplicationVersion(VERSION);
- QWidget* window = new MainWindow;
+ MainWindow window;
// 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);
+ EventDialog dialog(conferenceIdStr.toInt(), eventIdStr.toInt(), &window);
dialog.exec();
}
- window->show();
+ window.show();
return a.exec();
}