summaryrefslogtreecommitdiff
path: root/freefilesync
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-09-10 10:07:31 -0400
committerB Stack <bgstack15@gmail.com>2020-09-10 10:07:31 -0400
commit9b1b6fa86325cfae75b846a5a42e546467310e55 (patch)
tree1615ea45c4713241439fedf09e5fc3032b620849 /freefilesync
parentMerge branch 'freefilesync-bump' into 'master' (diff)
downloadstackrpms-9b1b6fa86325cfae75b846a5a42e546467310e55.tar.gz
stackrpms-9b1b6fa86325cfae75b846a5a42e546467310e55.tar.bz2
stackrpms-9b1b6fa86325cfae75b846a5a42e546467310e55.zip
ability to save and sort Traditional view
This adds the ability to save the Traditional view as the last-used view in the global config file. Also, the view can now be sorted.
Diffstat (limited to 'freefilesync')
-rw-r--r--freefilesync/debian/patches/ffs_traditional_view.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/freefilesync/debian/patches/ffs_traditional_view.patch b/freefilesync/debian/patches/ffs_traditional_view.patch
index 9793c6e..e602033 100644
--- a/freefilesync/debian/patches/ffs_traditional_view.patch
+++ b/freefilesync/debian/patches/ffs_traditional_view.patch
@@ -240,3 +240,36 @@ index 491b7321..2d5c20c3 100644
//----------------------------------------------------------------------------------------------
menu.addSeparator();
+diff -x .git -Naur 11.1-1/FreeFileSync/Source/config.cpp 11.1-2/FreeFileSync/Source/config.cpp
+--- 11.1-1/FreeFileSync/Source/config.cpp 2020-09-01 19:07:43.715122167 -0400
++++ 11.1-2/FreeFileSync/Source/config.cpp 2020-09-10 09:38:14.539542699 -0400
+@@ -528,6 +528,9 @@
+ case ItemPathFormat::full:
+ output = "Full";
+ break;
++ case ItemPathFormat::traditional:
++ output = "Traditional";
++ break;
+ }
+ }
+
+@@ -541,6 +545,8 @@
+ value = ItemPathFormat::relative;
+ else if (tmp == "Full")
+ value = ItemPathFormat::full;
++ else if (tmp == "Traditional")
++ value = ItemPathFormat::traditional;
+ else
+ return false;
+ return true;
+diff -x .git -Naur 11.1-1/FreeFileSync/Source/ui/file_view.cpp 11.1-2/FreeFileSync/Source/ui/file_view.cpp
+--- 11.1-1/FreeFileSync/Source/ui/file_view.cpp 2020-09-01 19:07:43.719122215 -0400
++++ 11.1-2/FreeFileSync/Source/ui/file_view.cpp 2020-09-10 09:40:11.609044834 -0400
+@@ -798,6 +798,7 @@
+ break;
+
+ case ItemPathFormat::full:
++ case ItemPathFormat::traditional:
+ if ( ascending && onLeft) std::sort(sortedRef_.begin(), sortedRef_.end(), LessFullPath<true, LEFT_SIDE>(folderPairs_));
+ else if ( ascending && !onLeft) std::sort(sortedRef_.begin(), sortedRef_.end(), LessFullPath<true, RIGHT_SIDE>(folderPairs_));
+ else if (!ascending && onLeft) std::sort(sortedRef_.begin(), sortedRef_.end(), LessFullPath<false, LEFT_SIDE>(folderPairs_));
bgstack15