use store_element() and restore_element() in on_button_accept_clicked

In file_movie.on_button_accept_clicked() file_movie.store_file() and
restore_file() are called. These methods don't exist; it looks like the
intent was to call store_element() and restore_element().

Testing confirms this; properties are now applied to all the selected
files.

Fixes Issue #79
This commit is contained in:
Geoff Beier 2019-07-20 22:26:21 -04:00
parent 4e46da6a17
commit 8eb2d5cf95

View file

@ -624,12 +624,12 @@ class file_movie(devedeng.interface_manager.interface_manager):
self.emit('in_menu_changed', self.show_in_menu) self.emit('in_menu_changed', self.show_in_menu)
else: else:
# editing properties for a group of files # editing properties for a group of files
data = self.store_file() data = self.store_element()
sel = self.wtreeview_multiproperties.get_selection() sel = self.wtreeview_multiproperties.get_selection()
model, pathlist = sel.get_selected_rows() model, pathlist = sel.get_selected_rows()
for file_path in pathlist: for file_path in pathlist:
obj = model[file_path][1] obj = model[file_path][1]
obj.restore_file(data) obj.restore_element(data)
self.wfile_properties.destroy() self.wfile_properties.destroy()
self.wfile_properties = None self.wfile_properties = None