From f81774f5b90eea698a8156b01ef65956d1322b15 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Wed, 14 Jul 2010 19:46:21 +0300 Subject: [PATCH] GUI: Fix compile after Severity changes. --- gui/threadresult.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/threadresult.cpp b/gui/threadresult.cpp index bef889a91..9a48be25c 100644 --- a/gui/threadresult.cpp +++ b/gui/threadresult.cpp @@ -49,7 +49,7 @@ void ThreadResult::reportErr(const ErrorLogger::ErrorMessage &msg) QMutexLocker locker(&mutex); // GUI doesn't know how to properly handle debug messages so lets ignore them. - if (msg._severity == "debug") + if (msg._severity == Severity::debug) return; QList lines; @@ -69,7 +69,7 @@ void ThreadResult::reportErr(const ErrorLogger::ErrorMessage &msg) item.id = QString(msg._id.c_str()); item.lines = lines; item.msg = QString(msg._msg.c_str()); - item.severity = QString(msg._severity.c_str()); + item.severity = QString::fromStdString(Severity::toString(msg._severity)); emit Error(item); }