forked from qt-creator/qt-creator
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:
@@ -64,7 +64,6 @@ void MaemoDeployables::init()
|
||||
|
||||
// TODO do we want to disable the view
|
||||
|
||||
if (!m_target->qt4Project()->rootProjectNode()->parseInProgress())
|
||||
createModels();
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user