diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphinview.cpp | 14 | ||||
| -rw-r--r-- | src/dolphinview.h | 6 |
2 files changed, 1 insertions, 19 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 0450eb460..e947508f0 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -158,10 +158,6 @@ DolphinView::DolphinView(QWidget* parent, connect(&DolphinNewMenuObserver::instance(), SIGNAL(itemCreated(const KUrl&)), this, SLOT(observeCreatedItem(const KUrl&))); - // when a copy/move-operation has been finished, the pasted items should get selected - connect(KIO::FileUndoManager::self(), SIGNAL(jobRecordingFinished(CommandType)), - this, SLOT(slotJobRecordingFinished(CommandType))); - applyViewProperties(url); m_topLayout->addWidget(itemView()); } @@ -1147,15 +1143,6 @@ void DolphinView::restoreSelection() changeSelection(m_selectedItems); } -void DolphinView::slotJobRecordingFinished(CommandType command) -{ - // Assure that the pasted items get selected. This must be done - // asynchronously in slotDirListerCompleted(). - m_selectClipboardItems = ((command == KIO::FileUndoManager::Copy) || - (command == KIO::FileUndoManager::Move)) && - !hasSelection(); -} - void DolphinView::emitContentsMoved() { // only emit the contents moved signal if: @@ -1513,6 +1500,7 @@ QAbstractItemView* DolphinView::itemView() const void DolphinView::pasteToUrl(const KUrl& url) { + m_selectClipboardItems = true; KonqOperations::doPaste(this, url); } diff --git a/src/dolphinview.h b/src/dolphinview.h index cb48caf56..122e0e1f5 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -682,12 +682,6 @@ private slots: */ void restoreSelection(); - /** - * Invoked when the undo manager indicates a finished operation. - * If a copy/move-operation has been done, the pasted items get selected. - */ - void slotJobRecordingFinished(CommandType command); - private: void loadDirectory(const KUrl& url, bool reload = false); |
