Skip to content
Snippets Groups Projects
Commit c425122a authored by hjk's avatar hjk
Browse files

debugger: fix potential crash after f2392ffb

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