]> cloud.milkyroute.net Git - dolphin.git/commitdiff
reanimate properties dialog (thanks to Laurent Montel for fixing it in the tree view!)
authorPeter Penz <peter.penz19@gmail.com>
Sat, 26 May 2007 13:33:36 +0000 (13:33 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 26 May 2007 13:33:36 +0000 (13:33 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=668453

src/dolphincontextmenu.cpp
src/dolphinmainwindow.cpp

index 0329fce773d54d3926c5b367ffc2355eb9bbd570..4e2cb4f8629721cf66a9b78a998be5d5ffb9a154 100644 (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()) {
index 2f24f746e01d54383bffc5720f7686e9679310dc..cdb3f3cbca944f063a34a4b55d612e2c82b48793 100644 (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()