From 25e8d19e13b0fe85a1233c650f36b9527c641560 Mon Sep 17 00:00:00 2001 From: Wolf Bergenheim Date: Tue, 9 Nov 2010 15:54:37 +0200 Subject: Added support for -v flag to turn on debugging --- libresourceqt/src/resource-engine.cpp | 2 +- resourceqt-client/commandlineparser.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libresourceqt/src/resource-engine.cpp b/libresourceqt/src/resource-engine.cpp index 20cd157..b9d9ee2 100644 --- a/libresourceqt/src/resource-engine.cpp +++ b/libresourceqt/src/resource-engine.cpp @@ -230,7 +230,7 @@ void ResourceEngine::receivedAdvice(resmsg_notify_t *message) { uint32_t allResources = allResourcesToBitmask(resourceSet); qDebug("ResourceEngine(%d) - %s: have: %02x got %02x", identifier, __FUNCTION__, allResources, message->resrc); - emit resourcesBecameAvailable(message->resrc); + emit resourcesBecameAvailable(message->resrc); } bool ResourceEngine::connectToManager() diff --git a/resourceqt-client/commandlineparser.cpp b/resourceqt-client/commandlineparser.cpp index 2e1a7ce..f169801 100644 --- a/resourceqt-client/commandlineparser.cpp +++ b/resourceqt-client/commandlineparser.cpp @@ -22,6 +22,8 @@ USA. #include #include "commandlineparser.h" +extern bool verbose; + QHash CommandLineParser::resourceValues; CommandLineParser::CommandLineParser(): @@ -77,6 +79,9 @@ bool CommandLineParser::parseArguments() case 'u': allowUnkownResourceClass = true; break; + case 'v': + verbose = true; + break; case 'h': default: usage(); -- cgit v1.2.3