summarylogtreecommitdiffstats
path: root/revert_bulk_append.patch
blob: a9ed6058fe51f51929c7bb23f62a0bf7d481b5fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -r -u a/FreeFileSync/Source/ui/command_box.cpp b/FreeFileSync/Source/ui/command_box.cpp
--- a/FreeFileSync/Source/ui/command_box.cpp	2019-08-15 19:36:52.000000000 +0200
+++ b/FreeFileSync/Source/ui/command_box.cpp	2019-08-17 19:08:51.511285343 +0200
@@ -130,7 +130,8 @@
 
     //this->Clear(); -> NO! emits yet another wxEVT_COMMAND_TEXT_UPDATED!!!
     wxItemContainer::Clear(); //suffices to clear the selection items only!
-    this->Append(items);
+    for (const wxString& item : items)                                                                                             
+        this->Append(item); 
 
     //this->SetSelection(wxNOT_FOUND); //don't select anything
     ChangeValue(value); //preserve main text!
diff -r -u a/FreeFileSync/Source/ui/folder_history_box.cpp b/FreeFileSync/Source/ui/folder_history_box.cpp
--- a/FreeFileSync/Source/ui/folder_history_box.cpp	2019-08-15 19:36:52.000000000 +0200
+++ b/FreeFileSync/Source/ui/folder_history_box.cpp	2019-08-17 19:04:37.023593558 +0200
@@ -90,7 +90,8 @@
 
     //this->Clear(); -> NO! emits yet another wxEVT_COMMAND_TEXT_UPDATED!!!
     wxItemContainer::Clear(); //suffices to clear the selection items only!
-    this->Append(dirList);
+    for (const wxString& dir : dirList)                                                                                                
+        this->Append(dir);  
 
     //this->SetSelection(wxNOT_FOUND); //don't select anything
     ChangeValue(folderPathPhrase); //preserve main text!