From: Peter Penz Date: Sun, 31 Jan 2010 12:26:50 +0000 (+0000) Subject: removed clearSelection() code, it is not needed anymore with Qt 4.6 and done automati... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4b1277f078fb1ac0b89aac7662baad2e11ce7173 removed clearSelection() code, it is not needed anymore with Qt 4.6 and done automatically internally svn path=/trunk/KDE/kdebase/apps/; revision=1082869 --- diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index a8188d971..b6fe9d343 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -173,14 +173,8 @@ void DolphinIconsView::mousePressEvent(QMouseEvent* event) setState(QAbstractItemView::DraggingState); } - if (!index.isValid()) { - if (QApplication::mouseButtons() & Qt::MidButton) { - m_controller->replaceUrlByClipboard(); - } - const Qt::KeyboardModifiers modifier = QApplication::keyboardModifiers(); - if (!(modifier & Qt::ShiftModifier) && !(modifier & Qt::ControlModifier)) { - clearSelection(); - } + if (!index.isValid() && (QApplication::mouseButtons() & Qt::MidButton)) { + m_controller->replaceUrlByClipboard(); } KCategorizedView::mousePressEvent(event);