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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 12 Nov 2010 19:17:16 +0100
changeset 718
979d6e242404
parent 717
3ebae1fae98d
child 721
9dd401431fcc

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	Thu Nov 11 19:38:12 2010 +0100
+++ b/QScintilla/Editor.py	Fri Nov 12 19:17:16 2010 +0100
@@ -2356,6 +2356,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]
@@ -5728,4 +5731,4 @@
                command = self.__receivedWhileSyncing.pop(0) 
                self.__dispatchCommand(command)
             
-            self.__isSyncing = False
\ No newline at end of file
+            self.__isSyncing = False

eric ide

mercurial