QScintilla/Editor.py

changeset 718
979d6e242404
parent 564
b3d966393ba9
child 723
49ef401db2ce
--- 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