Remote Linux: Fix possible crash.

Change-Id: I1519117381dbeb22d40546ecf8467079ca85aa35
Reviewed-on: http://codereview.qt.nokia.com/677
Reviewed-by: Christian Kandeler <christian.kandeler@nokia.com>
This commit is contained in:
Christian Kandeler
2011-06-23 16:13:42 +02:00
parent a529a804e0
commit 878429ad24

View File

@@ -64,8 +64,7 @@ void MaemoDeployables::init()
// TODO do we want to disable the view
if (!m_target->qt4Project()->rootProjectNode()->parseInProgress())
createModels();
createModels();
}
void MaemoDeployables::startTimer(Qt4ProjectManager::Qt4ProFileNode*, bool success, bool parseInProgress)
@@ -81,7 +80,7 @@ void MaemoDeployables::createModels()
return;
const Qt4ProFileNode *const rootNode
= m_target->qt4Project()->rootProjectNode();
if (!rootNode) // Happens on project creation by wizard.
if (!rootNode || rootNode->parseInProgress()) // Can be null right after project creation by wizard.
return;
m_updateTimer->stop();
disconnect(m_target->qt4Project(),