diff --git a/src/ui/MainWindow.py b/src/ui/MainWindow.py index d02595c..81b67be 100644 --- a/src/ui/MainWindow.py +++ b/src/ui/MainWindow.py @@ -2756,6 +2756,11 @@ class MainWindow(QMainWindow): self.batch_processing_thread.quit() self.batch_processing_thread.wait() + # Zusätzliche Sicherheitsprüfung für project_dir + if not self.project or not self.project.project_dir: + QMessageBox.warning(self, "Fehler", "Projekt-Verzeichnis ist nicht verfügbar") + return + # Erstelle und starte neuen Batch-Verarbeitungs-Thread self.batch_processing_thread = XmlBatchProcessingThread( xml_files=files_to_process,