tkpanels: properly test "None" return from askopenfilename

This commit is contained in:
rdb
2020-01-03 18:19:39 +01:00
parent 438130a157
commit 3367fe266f

View File

@@ -276,7 +276,7 @@ class AnimPanel(AppShell):
title = 'Load Animation',
parent = self.component('hull')
)
if not animFilename and animFilename != 'None':
if not animFilename or animFilename == 'None':
# no file selected, canceled
return