X-Git-Url: https://vaikene.ee/gitweb/pswgen11.html?a=blobdiff_plain;ds=inline;f=src%2Fplugins%2FSdiWindow%2Fsdiwindow.cpp;h=02de43a320a80ecf231a3b51d7305e93905764b5;hb=8e0779e2e5a9f947f79c28e2ff121f6ffdd78b3f;hp=d0294d8c83c1e18fddee8cc105170a9020de20eb;hpb=f443e47f50a5d12f592aaae6a4e553e4a125ee1c;p=evaf
diff --git a/src/plugins/SdiWindow/sdiwindow.cpp b/src/plugins/SdiWindow/sdiwindow.cpp
index d0294d8..02de43a 100644
--- a/src/plugins/SdiWindow/sdiwindow.cpp
+++ b/src/plugins/SdiWindow/sdiwindow.cpp
@@ -95,8 +95,8 @@ void MainWindow::done()
// Delete all the items added to the main window
while (mItemsAdded.count() > 0) {
- QPointer item = mItemsAdded.takeAt(0);
- if (item)
+ QWeakPointer item = mItemsAdded.takeAt(0);
+ if (!item.isNull())
delete item.data();
}