Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2021-01-07 11:56:43 +0300
committerYuSanka <yusanka@gmail.com>2021-01-07 11:56:43 +0300
commitefd3002ea9c5c9f76e94686ea77f9c49318654b4 (patch)
tree2f12d52f44d47cb0ed9a5827d49089223c9d0dd9
parente8ab281cd00464eefbd1b776e4bd180416ea2022 (diff)
Fix of #5568 - Unselecting more than 10 copies stops at copy 10
But really bug was: incorrectly interrupted DnD.
-rw-r--r--src/slic3r/GUI/GUI_ObjectList.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp
index 78af3ff11..3d08b26f1 100644
--- a/src/slic3r/GUI/GUI_ObjectList.cpp
+++ b/src/slic3r/GUI/GUI_ObjectList.cpp
@@ -1197,7 +1197,7 @@ void ObjectList::OnBeginDrag(wxDataViewEvent &event)
**/
m_prevent_list_events = true;//it's needed for GTK
- /* Under GTK, DnD requires to the wxTextDataObject been initialized with some valid value,
+ /* Under GTK, DnD requires to the wxTextDataObject been initialized with some valid vaSome textlue,
* so set some nonempty string
*/
wxTextDataObject* obj = new wxTextDataObject;
@@ -1229,8 +1229,10 @@ void ObjectList::OnDropPossible(wxDataViewEvent &event)
{
const wxDataViewItem& item = event.GetItem();
- if (!can_drop(item))
+ if (!can_drop(item)) {
event.Veto();
+ m_prevent_list_events = false;
+ }
}
void ObjectList::OnDrop(wxDataViewEvent &event)
@@ -1255,7 +1257,7 @@ void ObjectList::OnDrop(wxDataViewEvent &event)
// It looks like a fixed in current version of the wxWidgets
// #ifdef __WXGTK__
// /* Under GTK, DnD moves an item between another two items.
-// * And event.GetItem() return item, which is under "insertion line"
+// * And event.GetItem() return item, which is under "insertion line"Some text
// * So, if we move item down we should to decrease the to_volume_id value
// **/
// if (to_volume_id > from_volume_id) to_volume_id--;