]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphincolumnwidget.cpp
1) Make sure that size qprogressbar is really updated after each change
[dolphin.git] / src / dolphincolumnwidget.cpp
index a380dc52bf09256d4cb36a3f1e6677c6517a13bb..2ca4cdbbfea88fc13dc91fc53d96efd89985f1f2 100644 (file)
@@ -337,7 +337,11 @@ void DolphinColumnWidget::paintEvent(QPaintEvent* event)
 void DolphinColumnWidget::mousePressEvent(QMouseEvent* event)
 {
     requestActivation();
-    if (indexAt(event->pos()).isValid() && (event->button() == Qt::LeftButton)) {
+    if (!indexAt(event->pos()).isValid()) {
+        if (QApplication::mouseButtons() & Qt::MidButton) {
+            m_view->m_controller->replaceUrlByClipboard();
+        }
+    } else if (event->button() == Qt::LeftButton) {
         // TODO: see comment in DolphinIconsView::mousePressEvent()
         setState(QAbstractItemView::DraggingState);
     }