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,8 +64,7 @@ void MaemoDeployables::init()
|
|||||||
|
|
||||||
// TODO do we want to disable the view
|
// 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)
|
void MaemoDeployables::startTimer(Qt4ProjectManager::Qt4ProFileNode*, bool success, bool parseInProgress)
|
||||||
@@ -81,7 +80,7 @@ void MaemoDeployables::createModels()
|
|||||||
return;
|
return;
|
||||||
const Qt4ProFileNode *const rootNode
|
const Qt4ProFileNode *const rootNode
|
||||||
= m_target->qt4Project()->rootProjectNode();
|
= 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;
|
return;
|
||||||
m_updateTimer->stop();
|
m_updateTimer->stop();
|
||||||
disconnect(m_target->qt4Project(),
|
disconnect(m_target->qt4Project(),
|
||||||
|
|||||||
Reference in New Issue
Block a user