diff --git a/include/qredis/request.h b/include/qredis/request.h index e2577ef..5af64e1 100644 --- a/include/qredis/request.h +++ b/include/qredis/request.h @@ -3,7 +3,6 @@ #include #include -#include #include #include "qredis_export.h" @@ -13,7 +12,7 @@ namespace QRedis class QREDIS_EXPORT RequestPrivate; /** - * @brief Represents a request and its reply + * @brief Represents a Redis command and its response */ class QREDIS_EXPORT Request : public QObject { @@ -22,8 +21,8 @@ namespace QRedis public: /** - * @brief Creates a request - * @param parent + * @brief Initializes the request + * @param parent the parent QObject */ explicit Request(QObject * parent = 0); diff --git a/src/request.cpp b/src/request.cpp index f5aeff8..c89530b 100644 --- a/src/request.cpp +++ b/src/request.cpp @@ -33,5 +33,5 @@ bool Request::waitForReply(int msecs) * If the timer fires, the return value will be 0. * Otherwise, quitEventLoop() will terminate the loop with 1. */ - return d->loop.exec(); + return d->loop.exec(QEventLoop::ExcludeUserInputEvents); }