If events have been removed, project-event list is updated

automatically.
This commit is contained in:
Ludger Küperkoch 2021-01-14 10:13:51 +01:00
parent 21453159b7
commit a9784d33e5

View File

@ -1297,10 +1297,15 @@ class MainWindow(QMainWindow):
return False
else:
info_str = ''
i = 0
for event, path_exists in zip(self.project.eventlist, paths_exist):
if not path_exists:
info_str += '\n{} exists: {}'.format(event.path, path_exists)
del self.project.eventlist[i]
else:
i += 1
print('Unable to find certain event paths:{}'.format(info_str))
print("Removed these event paths from project eventlist!")
return True
def modify_project_path(self, new_rootpath):