removed clearSelection() code, it is not needed anymore with Qt 4.6 and done automatically internally

svn path=/trunk/KDE/kdebase/apps/; revision=1082869
This commit is contained in:
Peter Penz 2010-01-31 12:26:50 +00:00
parent 5e079195bc
commit 4b1277f078

View 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);