From 04bd01687ea17e40935941f6c03f986bc630cd7b Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 14 Apr 2014 12:33:45 +0200 Subject: [PATCH] refs #207, fixed core cmd-input --- samples/blackcore/tool.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/samples/blackcore/tool.cpp b/samples/blackcore/tool.cpp index dcab3eaea..5bbd400c1 100644 --- a/samples/blackcore/tool.cpp +++ b/samples/blackcore/tool.cpp @@ -4,7 +4,7 @@ #include "blackcore/context_audio.h" #include "blackcore/context_settings.h" #include "blackcore/context_application.h" -#include "blackmisc/valuemap.h" +#include "blackmisc/indexvariantmap.h" #include "blackmisc/avallclasses.h" #include "blackmisc/pqallquantities.h" #include @@ -66,7 +66,7 @@ namespace BlackMiscTest qDebug() << "examples: sigappd, slonete, slosimd, sloalle"; qDebug() << "-------------"; - line = qtin.readLine(); + line = qtin.readLine().toLower().trimmed(); if (line.startsWith("0")) { qDebug() << "-------------"; @@ -115,6 +115,7 @@ namespace BlackMiscTest } else if (line.startsWith("sig")) { + line.replace("signal", ""); line.replace("sig", ""); bool enable = line.endsWith("e"); if (line.startsWith("app")) runtime->signalLogForApplication(enable); @@ -126,6 +127,7 @@ namespace BlackMiscTest } else if (line.startsWith("slo")) { + line.replace("slot", ""); line.replace("slo", ""); bool enable = line.endsWith("e"); if (line.startsWith("app")) runtime->slotLogForApplication(enable);