summarylogtreecommitdiffstats
path: root/revert_bulk_append.patch
diff options
context:
space:
mode:
authorSimon Brulhart2019-08-17 20:05:54 +0200
committerSimon Brulhart2019-08-17 20:10:19 +0200
commitdd232907bb628ae2a41e6f955e49af5d28418623 (patch)
tree1bd4a253009c8483f82aaab3a82dcd4b2cb969aa /revert_bulk_append.patch
parent9c8f6f84685763b18757a9c5261c5291d53fe640 (diff)
downloadaur-dd232907bb628ae2a41e6f955e49af5d28418623.tar.gz
Update to v10.15
Diffstat (limited to 'revert_bulk_append.patch')
-rw-r--r--revert_bulk_append.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/revert_bulk_append.patch b/revert_bulk_append.patch
new file mode 100644
index 000000000000..a9ed6058fe51
--- /dev/null
+++ b/revert_bulk_append.patch
@@ -0,0 +1,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!