Author Topic: Small bugfix  (Read 3264 times)

Offline davep

  • Full Member
  • ***
  • Posts: 169
    • View Profile
Small bugfix
« on: September 12, 2012, 08:11:25 »
If I try to exit the vompclient by pressing the '7' key from the main menu (rather than by using the up/down and OK keys), the client shows a 'connection lost' box and the keyboard locks. This is the fix:

Code: [Select]
diff --git a/vwelcome.cc b/vwelcome.cc
index cb88da6..dad013a 100644
--- a/vwelcome.cc
+++ b/vwelcome.cc
@@ -189,6 +189,7 @@ int VWelcome::handleCommand(int command)
     case Remote::SEVEN:
     {
       Command::getInstance()->doReboot();
+      return 2;
     }
     case Remote::OK:
     {

Presumably the MVP never returned from doReboot(), but the RPi version does, and it then falls into the next part of the case statement.

Offline MartenR

  • Hero Member
  • *****
  • Posts: 789
    • View Profile
Re: Small bugfix
« Reply #1 on: September 13, 2012, 07:23:44 »
thanks, will be in git in a minute.

Marten