X-Git-Url: https://code.delx.au/virtualtones/blobdiff_plain/fea523e103dc13f1f80f71d75fe4f88686566584..dbf3c275fdcd6a94bb63ba2346b8f89dbfe35380:/main.cpp diff --git a/main.cpp b/main.cpp index f4f9bcf..29a3829 100644 --- a/main.cpp +++ b/main.cpp @@ -2,15 +2,13 @@ // Written by James Bunton // Licensed under the GPL, see COPYING.txt for more details -#include +#include #include "mainwin.h" int main(int argc, char **argv) { QApplication a(argc, argv); MainWin w; - a.setMainWidget(&w); + QObject::connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); return a.exec(); } - -