X-Git-Url: https://git.piment-noir.org/?p=deb_shairplay.git;a=blobdiff_plain;f=AirTV-Qt%2Fmain.cpp;h=a84258cf7bd2a8cb22e7be37bd7c7fd42343188a;hp=6c1724f4e9c17900cc0c00ad705b4438ae06697b;hb=7cd4f0d4bad535eee20bb54146d9d91d81e9fbd7;hpb=f41fdad301018fa43d3f220f2d6f8fca65e5548e diff --git a/AirTV-Qt/main.cpp b/AirTV-Qt/main.cpp index 6c1724f..a84258c 100644 --- a/AirTV-Qt/main.cpp +++ b/AirTV-Qt/main.cpp @@ -38,7 +38,10 @@ int main(int argc, char *argv[]) MainApplication m; QObject::connect(&m, SIGNAL(quitRequested()), &a, SLOT(quit())); QObject::connect(&a, SIGNAL(aboutToQuit()), &m, SLOT(aboutToQuit())); - m.start(); - return a.exec(); + if(m.start()) { + return a.exec(); + } else { + return EXIT_FAILURE; + } }