X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/83481c684518420be3c2d2c604ba85b2e72be9e4..080dc7d603d45ba0662aa731418993ddd45b5fe8:/src/app/main.cpp diff --git a/src/app/main.cpp b/src/app/main.cpp index 17aca5b..e67abfb 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -1,6 +1,6 @@ /* * Copyright (C) 2010 Ixonos Plc. - * Copyright (C) 2011-2013 Philipp Spitzer, gregor herrmann, Stefan Stahl + * Copyright (C) 2011-2024 Philipp Spitzer, gregor herrmann, Stefan Stahl * * This file is part of ConfClerk. * @@ -38,16 +38,16 @@ int main(int argc, char *argv[]) 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) { 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(); }