10 import os |
10 import os |
11 |
11 |
12 from PyQt6.QtCore import QObject, QCoreApplication |
12 from PyQt6.QtCore import QObject, QCoreApplication |
13 from PyQt6.QtWidgets import QDialog |
13 from PyQt6.QtWidgets import QDialog |
14 |
14 |
15 from E5Gui.E5Application import e5App |
15 from E5Gui.EricApplication import ericApp |
16 |
16 |
17 from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog |
17 from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog |
18 |
18 |
19 from Project.ProjectBrowserModel import ( |
19 from Project.ProjectBrowserModel import ( |
20 ProjectBrowserSimpleDirectoryItem, ProjectBrowserFileItem, |
20 ProjectBrowserSimpleDirectoryItem, ProjectBrowserFileItem, |
177 name = itm.fileName() |
177 name = itm.fileName() |
178 except AttributeError: |
178 except AttributeError: |
179 name = itm.dirName() |
179 name = itm.dirName() |
180 names.append(name) |
180 names.append(name) |
181 if Preferences.getVCS("AutoSaveFiles"): |
181 if Preferences.getVCS("AutoSaveFiles"): |
182 vm = e5App().getObject("ViewManager") |
182 vm = ericApp().getObject("ViewManager") |
183 for name in names: |
183 for name in names: |
184 vm.saveEditor(name) |
184 vm.saveEditor(name) |
185 self.vcs.vcsCommit(names, '') |
185 self.vcs.vcsCommit(names, '') |
186 |
186 |
187 def _VCSAdd(self): |
187 def _VCSAdd(self): |