]> cloud.milkyroute.net Git - dolphin.git/commitdiff
removed clearSelection() code, it is not needed anymore with Qt 4.6 and done automati...
authorPeter Penz <peter.penz19@gmail.com>
Sun, 31 Jan 2010 12:26:50 +0000 (12:26 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 31 Jan 2010 12:26:50 +0000 (12:26 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=1082869

src/dolphiniconsview.cpp

index a8188d9717e09fc0264df175cf2c164f0a775440..b6fe9d343ec28915d220e1d1da6c83de91a64a02 100644 (file)
@@ -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);