summaryrefslogtreecommitdiffstats
path: root/libhb/preset.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-12-30 09:28:07 -0700
committerJohn Stebbins <[email protected]>2016-12-30 09:29:34 -0700
commit2365f4073387d5a8743e396dcb1f9a7d18dfd4a3 (patch)
treefc41eca7273914ad6e9f7bb6fb2f3abefd5d49fd /libhb/preset.c
parentd58bb7a17d1a3e5978f16c363c361dc832c5acec (diff)
presets: fix hb_preset_move
Moving between different folder levels was broken. This broke preset drag-and-drop in LinGui.
Diffstat (limited to 'libhb/preset.c')
-rw-r--r--libhb/preset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/preset.c b/libhb/preset.c
index e2dc02057..5a628e04d 100644
--- a/libhb/preset.c
+++ b/libhb/preset.c
@@ -3701,7 +3701,7 @@ int hb_preset_move(const hb_preset_index_t *src_path,
int src_index, dst_index;
src_index = src_path->index[src_path->depth-1];
- dst_index = dst_path->index[src_path->depth-1];
+ dst_index = dst_path->index[dst_path->depth-1];
dict = hb_value_array_get(src_folder, src_index);
hb_value_incref(dict);
hb_value_array_remove(src_folder, src_index);