Sat, 04 Sep 2010 14:59:00 +0200
Fixed an issue introduced by the E5MessageBox job.
QScintilla/Editor.py | file | annotate | diff | comparison | revisions | |
ViewManager/ViewManager.py | file | annotate | diff | comparison | revisions |
--- a/QScintilla/Editor.py Sat Sep 04 13:12:07 2010 +0200 +++ b/QScintilla/Editor.py Sat Sep 04 14:59:00 2010 +0200 @@ -3970,9 +3970,9 @@ """ Private slot handling the save as context menu entry. """ - ok, newName = self.saveFileAs() + ok = self.saveFileAs() if ok: - self.vm.setEditorName(self, newName) + self.vm.setEditorName(self, self.fileName) def __contextClose(self): """ @@ -5728,4 +5728,4 @@ command = self.__receivedWhileSyncing.pop(0) self.__dispatchCommand(command) - self.__isSyncing = False \ No newline at end of file + self.__isSyncing = False
--- a/ViewManager/ViewManager.py Sat Sep 04 13:12:07 2010 +0200 +++ b/ViewManager/ViewManager.py Sat Sep 04 14:59:00 2010 +0200 @@ -3468,9 +3468,9 @@ @param ed editor to be saved """ if ed: - ok, newName = ed.saveFileAs() + ok = ed.saveFileAs() if ok: - self.setEditorName(ed, newName) + self.setEditorName(ed, ed.getFileName()) else: return @@ -3514,10 +3514,10 @@ pro = e5App().getObject("Project") path = pro.ppath if ed: - ok, newName = ed.saveFileAs(path, toProject = True) + ok = ed.saveFileAs(path, toProject = True) if ok: - self.setEditorName(ed, newName) - pro.appendFile(newName) + self.setEditorName(ed, ed.getFileName()) + pro.appendFile(ed.getFileName()) ed.addedToProject() else: return