QML Inspector: Don't update debug id's when not debugging

Creating LookupContext seems to be expensive, so don't update anything
unless debug mode is already running.
This commit is contained in:
Lasse Holmstedt
2010-08-24 15:13:50 +02:00
parent 67365553f7
commit fe55ba5cd2
4 changed files with 44 additions and 13 deletions

View File

@@ -523,7 +523,8 @@ ProjectExplorer::Project *InspectorUi::debugProject() const
bool InspectorUi::isShadowBuildProject() const
{
if (!debugProject())
// for .qmlproject based stuff, build dir is empty
if (!debugProject() || debugProjectBuildDirectory().isEmpty())
return false;
return (debugProject()->projectDirectory() != debugProjectBuildDirectory());