Skip to content
Snippets Groups Projects
Commit 7a723b51 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

decode filename only once

parent af424d5b
No related branches found
No related tags found
No related merge requests found
......@@ -160,8 +160,6 @@ def on_clear_button_clicked(self, widget):
def on_set_avatar_button_clicked(self, widget):
f = None
def on_ok(widget, path_to_file):
path_to_file = gtkgui_helpers.decode_filechooser_file_paths(
(path_to_file,))[0]
filesize = os.path.getsize(path_to_file) # in bytes
if filesize > 16384: # 16 kb
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment