mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
3ac27c04e7
commit
9801eddcdc
2 changed files with 7 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue