┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-29 13:54:52 +0000
committerPeter Penz <[email protected]>2008-06-29 13:54:52 +0000
commitb5de4d8ffb3823c6c4bc0ce3d47e74bfa3970d5e (patch)
treed57bdafebbb8fcd295495b9a358b77fbb4d3c80e /src/dolphinmainwindow.cpp
parentcb32d720d1b6ab82709697b2e4b9cf1067c14151 (diff)
Don't disable the "Properties" action when no file is selected, just use the current folder as source. TODO: the code in DolphinPart::slotProperties() and DolphinMainWindow::properties() is quite similar -> move to DolphinViewActionHandler?
CCMAIL: [email protected] BUG: 165311 svn path=/trunk/KDE/kdebase/apps/; revision=825846
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 46937fe1a..6822250e1 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -355,9 +355,15 @@ void DolphinMainWindow::updateNewMenu()
void DolphinMainWindow::properties()
{
+ KPropertiesDialog* dialog = 0;
const KFileItemList list = m_activeViewContainer->view()->selectedItems();
+ if (list.isEmpty()) {
+ const KUrl url = activeViewContainer()->url();
+ dialog = new KPropertiesDialog(url, this);
+ } else {
+ dialog = new KPropertiesDialog(list, this);
+ }
- KPropertiesDialog *dialog = new KPropertiesDialog(list, this);
dialog->setAttribute(Qt::WA_DeleteOnClose);
dialog->show();
dialog->raise();