decode filename only once

This commit is contained in:
Yann Leboulanger 2006-04-12 14:25:33 +00:00
parent af424d5bb9
commit 7a723b51ee
1 changed files with 0 additions and 2 deletions

View File

@ -160,8 +160,6 @@ class VcardWindow:
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: