Skip to content

Commit 6ea044a

Browse files
committed
Suggest basename.fgr when exporting PDF.
1 parent d9a3ca8 commit 6ea044a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diffpy/pdfgui/gui/mainframe.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ def onExportPDF(self, event):
23622362
name = self.treeCtrlMain.GetItemText(node)
23632363
basename = '.'.join(name.split('.')[:-1]) or name
23642364
matchstring = "PDF fit data file (*.fgr)|*.fgr|All Files|*"
2365-
d = wx.FileDialog(None, "Save as...", self.workpath, name,
2365+
d = wx.FileDialog(None, "Save as...", self.workpath, basename,
23662366
matchstring, wx.SAVE|wx.OVERWRITE_PROMPT)
23672367
if d.ShowModal() == wx.ID_OK:
23682368
path = d.GetPath()

0 commit comments

Comments
 (0)