X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=main.cpp;fp=main.cpp;h=3a5ac29fc2bca41ae597f812ee90d88040b2a02f;hp=a307159c5005f92dfe26212e1c7f90fd1e7ca898;hb=f1e9295aa5b9ff538c30b7c799a9c6b0efbfca3b;hpb=d1b479f74c9d1eb61b56cc4980d7328ec50216df;ds=sidebyside diff --git a/main.cpp b/main.cpp index a307159c..3a5ac29f 100644 --- a/main.cpp +++ b/main.cpp @@ -350,10 +350,9 @@ int main(int argc, char *argv[]) #ifdef ENABLE_SIGNALS if (SignalHandler::prepare_signals()) { SignalHandler *const handler = new SignalHandler(&w); - QObject::connect(handler, SIGNAL(int_received()), - &w, SLOT(close())); - QObject::connect(handler, SIGNAL(term_received()), - &w, SLOT(close())); + QObject::connect(handler, SIGNAL(int_received()), &w, SLOT(close())); + QObject::connect(handler, SIGNAL(term_received()), &w, SLOT(close())); + QObject::connect(handler, SIGNAL(usr1_received()), &w, SLOT(on_run_stop_clicked())); } else qWarning() << "Could not prepare signal handler."; #endif