From 4d855a2a4257b7b8a6f6c3b22a9d1c05e05ef0bd Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 12 Dec 2016 21:35:18 +0100 Subject: [PATCH] CHintBox: fix timeout comparsion default timeout was not defined Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/bd75701fc39b13be9c5b1b27b1cc31b9df4bd6ce Author: Thilo Graf Date: 2016-12-12 (Mon, 12 Dec 2016) ------------------ This commit was generated by Migit --- src/gui/widget/hintbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/hintbox.cpp b/src/gui/widget/hintbox.cpp index 52728f3c1..2439f57ed 100644 --- a/src/gui/widget/hintbox.cpp +++ b/src/gui/widget/hintbox.cpp @@ -197,7 +197,7 @@ int CHintBox::exec() neutrino_msg_data_t data; int res = messages_return::none; - if (timeout == NO_TIMEOUT || timeout == 0) + if (timeout == NO_TIMEOUT || timeout == DEFAULT_TIMEOUT) timeout = HINTBOX_DEFAULT_TIMEOUT; uint64_t timeoutEnd = CRCInput::calcTimeoutEnd( timeout );