reanimate properties dialog (thanks to Laurent Montel for fixing it in the tree view!)

svn path=/trunk/KDE/kdebase/apps/; revision=668453
This commit is contained in:
Peter Penz 2007-05-26 13:33:36 +00:00
parent 3ac27c04e7
commit 9801eddcdc
2 changed files with 7 additions and 2 deletions

View file

@ -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()) {

View file

@ -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()