]> vaikene.ee Git - evaf/blobdiff - src/plugins/SdiWindow/sdiwindow.cpp
Replaced QPointer<> with QWeakPointer<>
[evaf] / src / plugins / SdiWindow / sdiwindow.cpp
index d0294d8c83c1e18fddee8cc105170a9020de20eb..02de43a320a80ecf231a3b51d7305e93905764b5 100644 (file)
@@ -95,8 +95,8 @@ void MainWindow::done()
 
     // Delete all the items added to the main window
     while (mItemsAdded.count() > 0) {
-        QPointer<QObject> item = mItemsAdded.takeAt(0);
-        if (item)
+        QWeakPointer<QObject> item = mItemsAdded.takeAt(0);
+        if (!item.isNull())
             delete item.data();
     }