summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoystick
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-12 12:56:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-13 10:29:41 +0100
commit95f2c919af1cffbdbefee1265b01dc7ddba07b72 (patch)
tree74fbbab9a4b766c0adcf3bbce2e807573ca3fe34 /proto-vjoystick
parent9d1d9154a8d0fdd2c41a061acaf9fe4d947757fa (diff)
proto/vjoystick: simplify
Diffstat (limited to 'proto-vjoystick')
-rw-r--r--proto-vjoystick/vjoystick.cpp8
1 files changed, 4 insertions, 4 deletions
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;