Fri, 12 Nov 2010 19:17:44 +0100
Fixed an issue in the editor saving files without extension on Windows systems.
QScintilla/Editor.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/Editor.py Wed Nov 10 19:40:31 2010 +0100 +++ b/QScintilla/Editor.py Fri Nov 12 19:17:44 2010 +0100 @@ -2367,6 +2367,9 @@ QFileDialog.Options(QFileDialog.DontConfirmOverwrite)) if fn: + if fn.endswith("."): + fn = fn[:-1] + ext = QFileInfo(fn).suffix() if not ext: ex = selectedFilter.split("(*")[1].split(")")[0]