Fixed an issue in the editor saving files without extension on Windows systems. 5_0_x

Fri, 12 Nov 2010 19:17:44 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 12 Nov 2010 19:17:44 +0100
branch
5_0_x
changeset 719
d564fadc6913
parent 715
8f7d26b91ee3
child 720
dd67928832ab

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]

eric ide

mercurial