┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphinmainwindow.cpp')
-rw-r--r--src/dolphinmainwindow.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index a2bb16b8a..deb418681 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -585,32 +585,11 @@ void DolphinMainWindow::undo()
void DolphinMainWindow::cut()
{
- QClipboard* clipboard = QApplication::clipboard();
- const QMimeData* currentMimeData = clipboard->mimeData();
- const bool hadCutSelection = KonqMimeData::decodeIsCutSelection(currentMimeData);
-
QMimeData* mimeData = new QMimeData();
const KUrl::List kdeUrls = m_activeView->selectedUrls();
const KUrl::List mostLocalUrls;
KonqMimeData::populateMimeData(mimeData, kdeUrls, mostLocalUrls, true);
QApplication::clipboard()->setMimeData(mimeData);
-
- if (hadCutSelection) {
- // If an old cut selection has been applied, the view must
- // be reloaded to get the original icons of the items without an
- // applied item effect.
- m_view[PrimaryIdx]->reload();
- if (m_view[SecondaryIdx] != 0) {
- m_view[SecondaryIdx]->reload();
- }
- }
- else {
- // apply an item effect for the icons of all cut items
- m_view[PrimaryIdx]->updateCutItems();
- if (m_view[SecondaryIdx] != 0) {
- m_view[SecondaryIdx]->updateCutItems();
- }
- }
}
void DolphinMainWindow::copy()