diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 0329fce773..4e2cb4f862 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -242,7 +242,10 @@ void DolphinContextMenu::openViewportContextMenu() QAction* activatedAction = popup->exec(QCursor::pos()); if (activatedAction == propertiesAction) { - new KPropertiesDialog(m_mainWindow->activeView()->url()); + const KUrl& url = m_mainWindow->activeView()->url(); + KPropertiesDialog* dlg = new KPropertiesDialog(url); + dlg->exec(); + delete dlg; } else if (activatedAction == bookmarkAction) { const KUrl& url = m_mainWindow->activeView()->url(); if (url.isValid()) { diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp index 2f24f746e0..cdb3f3cbca 100644 --- a/src/dolphinmainwindow.cpp +++ b/src/dolphinmainwindow.cpp @@ -458,7 +458,9 @@ void DolphinMainWindow::deleteItems() void DolphinMainWindow::properties() { const KFileItemList list = m_activeView->selectedItems(); - new KPropertiesDialog(list, this); + KPropertiesDialog* dlg = new KPropertiesDialog(list, this); + dlg->exec(); + delete dlg; } void DolphinMainWindow::quit()