We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd5274b commit 396f0baCopy full SHA for 396f0ba
msaj.py
@@ -181,7 +181,9 @@ def report(self):
181
def save_file(self):
182
options = QFileDialog.Options()
183
self.filename = QFileDialog.getSaveFileName(self, "Save File", str(Path.home()),
184
- "NEXUS Files (*.nex *.nexus *.nxs)", options=options)[0] + '.nex'
+ "NEXUS Files (*.nex *.nexus *.nxs)", options=options)[0]
185
+ if QFileInfo(self.filename).suffix() != ('.nex' and '.nexus') and basename(splitext(self.filename)[0]) != '':
186
+ self.filename += '.nex'
187
return self.filename
188
189
def msaj(self):
0 commit comments