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());
}
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:
void DolphinView::pasteToUrl(const KUrl& url)
{
+ m_selectClipboardItems = true;
KonqOperations::doPaste(this, url);
}
*/
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);