Skip to content

Commit 48e49fd

Browse files
authored
Fixing overlooked error.
Didn't account for if user exited open file dialog without selecting a file, which created inconsistencies in export displaying a warning regarding not having selected a file.
1 parent 165f7e0 commit 48e49fd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

NMS_Reward_Allocator.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ def processSelection2(self, pick, *args):
255255
def loadexml(self):
256256
lfn = askopenfilename(title="Choose exml to parse", filetypes = (("Exml files", "*.exml"),
257257
("All files", "*.*")))
258-
self.selexml.set(lfn)
258+
if lfn == '':
259+
return
260+
else:
261+
self.selexml.set(lfn)
259262

260263
def export(self, selectedAlienRace, selectedIntType, selectedRewID):
261264
if self.selexml.get() == "None":

0 commit comments

Comments
 (0)