Fixed an issue in the FindFileDialog class replacing text.

Sun, 03 Oct 2010 19:00:05 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 03 Oct 2010 19:00:05 +0200
changeset 654
72d4c6f31157
parent 653
0540f3c52b46
child 656
2f4496b1956f

Fixed an issue in the FindFileDialog class replacing text.

UI/FindFileDialog.py file | annotate | diff | comparison | revisions
--- a/UI/FindFileDialog.py	Sun Oct 03 18:39:11 2010 +0200
+++ b/UI/FindFileDialog.py	Sun Oct 03 19:00:05 2010 +0200
@@ -574,7 +574,7 @@
                         lines[line - 1] = rline
                 
                 # write the file
-                txt = Utilities.linesep().join(lines)
+                txt = Utilities.linesep().join(lines) + Utilities.linesep()
                 try:
                     Utilities.writeEncodedFile(fn, txt, encoding)
                 except (IOError, Utilities.CodingError, UnicodeError) as err:
@@ -626,4 +626,4 @@
             fn = itm.text(0)
         
         cb = QApplication.clipboard()
-        cb.setText(fn)
\ No newline at end of file
+        cb.setText(fn)

eric ide

mercurial