From 6cb02408e418ca864c9e02d55f3358a1a7c64a15 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Sun, 10 Dec 2006 21:01:38 +0000 Subject: Use a QLinkedList instead of Q3PtrList svn path=/trunk/playground/utils/dolphin/; revision=612313 --- src/dolphinmainwindow.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 61b7bb221..4fa3cef31 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -86,17 +86,20 @@ DolphinMainWindow::DolphinMainWindow() : m_view[PrimaryIdx] = 0; m_view[SecondaryIdx] = 0; - m_fileGroupActions.setAutoDelete(true); - // TODO: the following members are not used yet. See documentation // of DolphinMainWindow::linkGroupActions() and DolphinMainWindow::linkToDeviceActions() // in the header file for details. - //m_linkGroupActions.setAutoDelete(true); - //m_linkToDeviceActions.setAutoDelete(true); } DolphinMainWindow::~DolphinMainWindow() { + qDeleteAll(m_fileGroupActions); + //qDeleteAll(m_linkToDeviceActions); + //qDeleteAll(m_linkGroupActions); + m_fileGroupActions.clear(); + //m_linkGroupActions.clear(); + //m_linkToDeviceActions.clear(); + /* * bye, bye managed window */ -- cgit v1.3