Commit c425122a authored by hjk's avatar hjk

debugger: fix potential crash after f2392ffb

parent 73101efc
......@@ -607,8 +607,9 @@ QString WatchModel::niceType(const QString &typeIn) const
QString type = niceTypeHelper(typeIn);
if (theDebuggerBoolSetting(ShowStdNamespace))
type = type.remove("std::");
if (theDebuggerBoolSetting(ShowQtNamespace))
type = type.remove(m_handler->m_manager->currentEngine()->qtNamespace());
IDebuggerEngine *engine = m_handler->m_manager->currentEngine();
if (engine && theDebuggerBoolSetting(ShowQtNamespace))
type = type.remove(engine->qtNamespace());
return type;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment