From da795d20e2f2fa57ac9cafdffcfac4d092d8eaea Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 28 May 2007 04:32:57 +0000 Subject: create modal dialogs on stack as David suggested svn path=/trunk/KDE/kdebase/apps/; revision=668900 --- src/dolphinmainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/dolphinmainwindow.cpp') diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index cdb3f3cbc..59fc84af3 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -458,9 +458,8 @@ void DolphinMainWindow::deleteItems() void DolphinMainWindow::properties() { const KFileItemList list = m_activeView->selectedItems(); - KPropertiesDialog* dlg = new KPropertiesDialog(list, this); - dlg->exec(); - delete dlg; + KPropertiesDialog dialog(list, this); + dialog.exec(); } void DolphinMainWindow::quit() -- cgit v1.3