I have temporary disabled external drag and drop from projectmanagerui.
External drag and drop is incompatible with wxTreeCtrl internal use of drag and drop.
We can use one or the other, but not both in a wxTreeCtrl.
This means that the Snippets plugin will not be able to drag items out of the project tree. However, it can copy and paste them.
I will look for or create a solution that allows external drag and drop from a wx tree control.
This should fix the issue
diff --git a/src/src/projectmanagerui.cpp b/src/src/projectmanagerui.cpp
index cbd93a6fe..6ca7d0926 100644
--- a/src/src/projectmanagerui.cpp
+++ b/src/src/projectmanagerui.cpp
@@ -977,11 +977,8 @@ void ProjectManagerUI::OnTreeBeginDrag(wxTreeEvent& event)
wxDropSource dragSource(m_pTree);
dragSource.SetData(dropObject);
dragSource.DoDragDrop();
- // we disallow the drag of files within the project tree
- return;
}
-
- // allowed
+ // Allow drag and drop within the project tree
event.Allow();
}
On windows the handling is somehow bugged: If you drag a file the "forbidden" cursor will be shown as long as you hold the mouse button. As soon you release the button the normal "drag&drop" cursor will appear and drag and drop is possible...
It works, but i still will look further...