diff options
| author | David Faure <[email protected]> | 2014-10-21 20:44:37 +0200 |
|---|---|---|
| committer | David Faure <[email protected]> | 2014-10-21 21:59:05 +0200 |
| commit | 9bf03a3c48f4847b5e0417e3529bf071108cbf1e (patch) | |
| tree | 7a0e06ebb453498a51e69af723527fb63bd177bc /src/views/dolphinview.cpp | |
| parent | 0ce1c983b55fb79574fd4764e3ae8355f82ebf20 (diff) | |
Dolphin: port to KIO::pasteInfoText().
DolphinContextMenu::createPasteAction used to be precise about destination
("Paste To Folder"), while now it's precise about the source (what to paste).
It was decided that this was more useful and consistent anyway.
REVIEW: 120695
Diffstat (limited to 'src/views/dolphinview.cpp')
| -rw-r--r-- | src/views/dolphinview.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/views/dolphinview.cpp b/src/views/dolphinview.cpp index f35c9e6ca..b330e5f5c 100644 --- a/src/views/dolphinview.cpp +++ b/src/views/dolphinview.cpp @@ -1149,7 +1149,10 @@ void DolphinView::updateSortFoldersFirst(bool foldersFirst) QPair<bool, QString> DolphinView::pasteInfo() const { - return KonqOperations::pasteInfo(url()); + const QMimeData *mimeData = QApplication::clipboard()->mimeData(); + QPair<bool, QString> info; + info.second = KIO::pasteActionText(mimeData, &info.first, rootItem()); + return info; } void DolphinView::setTabsForFilesEnabled(bool tabsForFiles) |
