Skip to content

Commit

Permalink
- Set default file extension for calibration files
Browse files Browse the repository at this point in the history
  • Loading branch information
mihtjel committed Oct 1, 2019
1 parent ab55b7b commit 4cef734
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NanoVNASaver/Calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ def saveCalibration(self):
logger.debug("Attempted to save an uncalculated calibration.")
self.app.showError("Cannot save an unapplied calibration state.")
return
filename, _ = QtWidgets.QFileDialog.getSaveFileName(filter="Calibration Files (*.cal);;All files (*.*)")
filedialog = QtWidgets.QFileDialog(self)
filedialog.setDefaultSuffix("cal")
filename, _ = filedialog.getSaveFileName(filter="Calibration Files (*.cal);;All files (*.*)")
self.app.calibration.notes = self.notes_textedit.toPlainText().splitlines()
if filename and self.app.calibration.saveCalibration(filename):
self.app.settings.setValue("CalibrationFile", filename)
Expand Down

0 comments on commit 4cef734

Please sign in to comment.