diff options
Diffstat (limited to 'tracker-rs/ftnoir_tracker_rs_controls.cpp')
-rw-r--r-- | tracker-rs/ftnoir_tracker_rs_controls.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tracker-rs/ftnoir_tracker_rs_controls.cpp b/tracker-rs/ftnoir_tracker_rs_controls.cpp index 3ea2a0a1..a5018957 100644 --- a/tracker-rs/ftnoir_tracker_rs_controls.cpp +++ b/tracker-rs/ftnoir_tracker_rs_controls.cpp @@ -10,15 +10,14 @@ RSdialog_realsense::RSdialog_realsense() { ui.setupUi(this); - connect(ui.triggerSDKInstallButton, SIGNAL(clicked(bool)), this, SLOT(doInstallRSRuntime())); - connect(ui.buttonBox, SIGNAL(rejected()), this, SLOT(doCancel())); - connect(ui.buttonBox, SIGNAL(accepted()), this, SLOT(doOK())); + connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QDialog::close); + connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QDialog::close); } void RSdialog_realsense::doInstallRSRuntime() { bool pStarted = RSTracker::startSdkInstallationProcess(); - if(pStarted == true) + if(pStarted) close(); } |