From 4a3d37c7d98a2fddc19feb920a3f02bc6868a063 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 30 Mar 2017 13:56:54 +0200 Subject: tracker/steamvr: add missing return in error path --- tracker-steamvr/steamvr.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tracker-steamvr') diff --git a/tracker-steamvr/steamvr.cpp b/tracker-steamvr/steamvr.cpp index b60d4896..e5585541 100644 --- a/tracker-steamvr/steamvr.cpp +++ b/tracker-steamvr/steamvr.cpp @@ -187,6 +187,7 @@ void steamvr::start_tracker(QFrame*) QMessageBox::warning(nullptr, tr("Valve SteamVR init error"), strerror(e), QMessageBox::Close, QMessageBox::NoButton); + return; } const QString serial = s.device_serial; @@ -200,6 +201,7 @@ void steamvr::start_tracker(QFrame*) tr("Valve SteamVR init error"), tr("No HMD connected"), QMessageBox::Close, QMessageBox::NoButton); + return; } for (const device_spec& spec : specs) -- cgit v1.2.3