diff options
| -rw-r--r-- | src/kitemviews/private/kitemlistheaderwidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kitemviews/private/kitemlistheaderwidget.cpp b/src/kitemviews/private/kitemlistheaderwidget.cpp index 08afdc5cf..c598e5fb2 100644 --- a/src/kitemviews/private/kitemlistheaderwidget.cpp +++ b/src/kitemviews/private/kitemlistheaderwidget.cpp @@ -355,6 +355,10 @@ void KItemListHeaderWidget::mouseMoveEvent(QGraphicsSceneMouseEvent *event) // synchronized on each further mouse-move-event with the mouse-position. const int roleIndex = roleIndexAt(m_pressedMousePos); m_movingRole.index = roleIndex; + if (roleIndex < 0) { + // Trying to drag side padding + return; + } if (roleIndex == nameColumnIndex(this)) { // TODO: It should be configurable whether moving the first role is allowed. // In the context of Dolphin this is not required, however this should be |
