summaryrefslogtreecommitdiffhomepage
path: root/tracker-steamvr
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-30 13:56:54 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-06 04:29:47 +0200
commit4a3d37c7d98a2fddc19feb920a3f02bc6868a063 (patch)
tree6596b946f53f62f19355ce021c789025d5678fe9 /tracker-steamvr
parent61e861de7a6a6d39f75c79b93140f2db0768d183 (diff)
tracker/steamvr: add missing return in error path
Diffstat (limited to 'tracker-steamvr')
-rw-r--r--tracker-steamvr/steamvr.cpp2
1 files changed, 2 insertions, 0 deletions
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)