diff options
Diffstat (limited to 'proto-vjoystick/vjoystick.cpp')
-rw-r--r-- | proto-vjoystick/vjoystick.cpp | 8 |
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; |