Commit 7c5af3f8 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Places Panel] Stop drag activation timer when dropping

Avoids switching folders after a drop while interacting with
the Copy/Move/Link menu.
parent f3cf4e3a
Pipeline #128172 passed with stage
in 3 minutes and 16 seconds
......@@ -165,6 +165,16 @@ void PlacesPanel::dragLeaveEvent(QDragLeaveEvent *event)
void PlacesPanel::dropEvent(QDropEvent *event)
if (m_dragActivationTimer) {
m_pendingDragActivation = QPersistentModelIndex();
void PlacesPanel::slotConfigureTrash()
const QUrl url = currentIndex().data(KFilePlacesModel::UrlRole).toUrl();
......@@ -56,6 +56,7 @@ protected:
void showEvent(QShowEvent* event) override;
void dragMoveEvent(QDragMoveEvent *event) override;
void dragLeaveEvent(QDragLeaveEvent *event) override;
void dropEvent(QDropEvent *event) override;
private Q_SLOTS:
void slotConfigureTrash();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment