diff options
| author | Peter Penz <[email protected]> | 2010-01-31 12:26:50 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-01-31 12:26:50 +0000 |
| commit | 4b1277f078fb1ac0b89aac7662baad2e11ce7173 (patch) | |
| tree | c3f9b692de48fe264c9a8950be79d2ce77334b4a /src/dolphiniconsview.cpp | |
| parent | 5e079195bc38768041365b64f1a70285261125fd (diff) | |
removed clearSelection() code, it is not needed anymore with Qt 4.6 and done automatically internally
svn path=/trunk/KDE/kdebase/apps/; revision=1082869
Diffstat (limited to 'src/dolphiniconsview.cpp')
| -rw-r--r-- | src/dolphiniconsview.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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); |
