Debugger: Work around a Qt deprecation warning

Change-Id: Ia396ec2a4b50b39692d659d107ef5bb7e5e5e5bd
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2019-08-02 12:14:07 +02:00
parent 45f9c178e1
commit cd1338cc30

View File

@@ -318,7 +318,7 @@ QmlEngine::~QmlEngine()
for (iter = d->sourceEditors.begin(); iter != d->sourceEditors.end(); ++iter) {
QWeakPointer<BaseTextEditor> textEditPtr = iter.value();
if (textEditPtr)
documentsToClose << textEditPtr.data()->document();
documentsToClose << textEditPtr.toStrongRef().data()->document();
}
EditorManager::closeDocuments(Utils::toList(documentsToClose));