if (!m_newFileNames.isEmpty()) {
// select all newly added items created by a paste operation or
- // a drag & drop operation
+ // a drag & drop operation, and clear the previous selection
+ m_viewAccessor.itemView()->clearSelection();
const int rowCount = m_viewAccessor.proxyModel()->rowCount();
QItemSelection selection;
for (int row = 0; row < rowCount; ++row) {
void DolphinView::slotRedirection(const KUrl& oldUrl, const KUrl& newUrl)
{
- emit redirection(oldUrl, newUrl);
- m_viewModeController->redirectToUrl(newUrl); // #186947
+ if (oldUrl.equals(url(), KUrl::CompareWithoutTrailingSlash)) {
+ emit redirection(oldUrl, newUrl);
+ m_controller->redirectToUrl(newUrl); // #186947
+ }
}
void DolphinView::restoreContentsPosition()