Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Fix Comic Manager exception (KeyError) when exporting comic with no pages
Nicholas LaPointecc69a57174a9
diff --git a/plugins/python/comics_project_management_tools/comics_exporter.py b/plugins/python/comics_project_management_tools/comics_exporter.pyindex 32e9401459..1232f322a6 100644--- a/plugins/python/comics_project_management_tools/comics_exporter.py+++ b/plugins/python/comics_project_management_tools/comics_exporter.py@@ -114,6 +114,12 @@ class comicsExporter():path = Path(self.projectURL)if path.exists():+ # Return a failure if we don't have any pages to export+ if "pages" not in self.configDictionary:+ QMessageBox.warning(None, i18n("Export not Possible"), i18n("No pages to export."), QMessageBox.StandardButton.Ok)+ print("CPMT: No pages to export")+ return False+# Make a meta-data folder so we keep the export folder nice and clean.exportPath = path / self.configDictionary["exportLocation"]if Path(exportPath / "metadata").exists() is False: