From 95f2c919af1cffbdbefee1265b01dc7ddba07b72 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 12 Feb 2019 12:56:47 +0100 Subject: proto/vjoystick: simplify --- proto-vjoystick/vjoystick.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'proto-vjoystick') diff --git a/proto-vjoystick/vjoystick.cpp b/proto-vjoystick/vjoystick.cpp index 268fa343..e49a2756 100644 --- a/proto-vjoystick/vjoystick.cpp +++ b/proto-vjoystick/vjoystick.cpp @@ -114,8 +114,6 @@ module_status vjoystick::initialize() case VJD_STAT_OWN: msg = tr("BUG: handle leak."); break; - case VJD_STAT_FREE: - break; case VJD_STAT_BUSY: msg = tr("Virtual joystick already in use."); break; @@ -128,11 +126,13 @@ module_status vjoystick::initialize() default: msg = tr("Unknown error #%1.").arg(code); break; + case VJD_STAT_FREE: + // we're good + status = true; + break; } } - status = msg.isNull(); - if (!status) { QMessageBox msgbox; -- cgit v1.2.3