┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
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();