# # # patch "src/main.cpp" # from [e08f5e610c7b071bdc0e5eb2960c79cb61ef04b5] # to [c24800c171147aa0b208a9dfb3e1d082e18d3a94] # ============================================================ --- src/main.cpp e08f5e610c7b071bdc0e5eb2960c79cb61ef04b5 +++ src/main.cpp c24800c171147aa0b208a9dfb3e1d082e18d3a94 @@ -43,10 +43,12 @@ void guitoneMsgHandler(QtMsgType type, c typeMap.insert(QtCriticalMsg, DebugLog::Critical); typeMap.insert(QtFatalMsg, DebugLog::Fatal); } - I(typeMap.contains(type)); + + if (typeMap.contains(type)) + DebugLog::log(typeMap.value(type), QString::fromUtf8(msg)); + else + DebugLog::log(DebugLog::Critical, QString::fromUtf8(msg)); - DebugLog::log(typeMap.value(type), QString::fromUtf8(msg)); - if (type == QtFatalMsg) abort(); }