Browse Source

tkpanels: properly test "None" return from askopenfilename

rdb 6 years ago
parent
commit
3367fe266f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      direct/src/tkpanels/AnimPanel.py

+ 1 - 1
direct/src/tkpanels/AnimPanel.py

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