X-Git-Url: https://code.delx.au/virtualtones/blobdiff_plain/fea523e103dc13f1f80f71d75fe4f88686566584..cb268b4b10d164509f5c02d4719dfb00dd9d61e9:/main.cpp diff --git a/main.cpp b/main.cpp index f4f9bcf..5a5ce36 100644 --- a/main.cpp +++ b/main.cpp @@ -1,16 +1,14 @@ // main.cpp - MIDI keyboard program -// Written by James Bunton +// 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(); } - -