┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-22 19:25:44 +0000
committerPeter Penz <[email protected]>2007-03-22 19:25:44 +0000
commitae338af47408467c6ba481ff015ef18ad401f046 (patch)
treee053a553a68b65070caf737470b9b0f7dfa24758 /src/dolphinmainwindow.cpp
parente74cc60fefbbbe5452c1fa069a59f2cac1ec4c1b (diff)
improve the handling when applying item effects to cut items
svn path=/trunk/KDE/kdebase/apps/; revision=645516
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()