X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=main.cpp;h=3a5ac29fc2bca41ae597f812ee90d88040b2a02f;hb=04b0467582d8dfa989bb38fe18bfb1be20cea456;hp=b0e631f6382cbd4697d2171e30ebab8620065989;hpb=720f47623827824dc77dd9dff643c06e570d9068;p=pulseview.git diff --git a/main.cpp b/main.cpp index b0e631f6..3a5ac29f 100644 --- a/main.cpp +++ b/main.cpp @@ -278,6 +278,7 @@ int main(int argc, char *argv[]) qRegisterMetaType("uint64_t"); qRegisterMetaType("util::Timestamp"); qRegisterMetaType("SharedPtrToSegment"); + qRegisterMetaType>("shared_ptr"); // Prepare the global settings since logging needs them early on pv::GlobalSettings settings; @@ -349,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