]> git.mxchange.org Git - flightgear.git/commitdiff
XMLHttpRequest: only set failure signal on failure
authorJames Turner <zakalawe@mac.com>
Mon, 19 Nov 2012 23:02:35 +0000 (23:02 +0000)
committerJames Turner <zakalawe@mac.com>
Mon, 19 Nov 2012 23:02:35 +0000 (23:02 +0000)
Use failure as a real signal property - only set it / fire listeners on a real failure condition.

src/Main/fg_commands.cxx

index a406a226bf895b03b4bca49564ce1bda1be44818..8a62cad4e98f960d167f7c95c60979414fe86d0e 100644 (file)
@@ -1375,7 +1375,7 @@ protected:
     // now the response data is output, signal Nasal / listeners
         if (_complete) _complete->setBoolValue(true);
         if (_status) _status->setIntValue(response);
-        if (_failed) _failed->setBoolValue(failed);
+        if (_failed && failed) _failed->setBoolValue(true);
     }
 };