┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Faure <[email protected]>2007-12-24 11:46:35 +0000
committerDavid Faure <[email protected]>2007-12-24 11:46:35 +0000
commit0cb23c8cfa1049cbd5ef98368ff1c200978b8ac7 (patch)
treed431ba6744f2edb396d7dc9c362d5a7898810ec9 /src
parent5a3a5f513515dd2a260fdea3b148e38339c41e57 (diff)
This TODO is implementable now: use real KFileItem instead of fake one
svn path=/trunk/KDE/kdebase/apps/; revision=752421
Diffstat (limited to 'src')
-rw-r--r--src/dolphinview.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index 8502bfd22..297ab9934 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -1209,8 +1209,8 @@ QPair<bool, QString> DolphinView::pasteInfo() const
}
if (ret.first) {
- const KUrl::List urls = selectedUrls();
- const uint count = urls.count();
+ const KFileItemList items = selectedItems();
+ const uint count = items.count();
if (count > 1) {
// pasting should not be allowed when more than one file
// is selected
@@ -1218,13 +1218,7 @@ QPair<bool, QString> DolphinView::pasteInfo() const
} else if (count == 1) {
// Only one file is selected. Pasting is only allowed if this
// file is a directory.
- // TODO: this doesn't work with remote protocols; instead we need a
- // m_activeViewContainer->selectedFileItems() to get the real KFileItems
- const KFileItem fileItem(S_IFDIR,
- KFileItem::Unknown,
- urls.first(),
- true);
- ret.first = fileItem.isDir();
+ ret.first = items.first().isDir();
}
}
return ret;