diff --git a/scripts/resources.patch b/scripts/resources.patch index 6be6ac514..3c8fc0066 100644 --- a/scripts/resources.patch +++ b/scripts/resources.patch @@ -37,19 +37,19 @@ qt_resource_data = "\ @@ -71953,9 +71971,14 @@ - " + qt_resource_struct = qt_resource_struct_v2 def qInitResources(): + """ + Initialise OpenLP resources at application startup. + """ - QtCore.qRegisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data) + QtCore.qRegisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data) def qCleanupResources(): + """ + Cleanup OpenLP resources when the application shuts down. + """ - QtCore.qUnregisterResourceData(0x01, qt_resource_struct, qt_resource_name, qt_resource_data) + QtCore.qUnregisterResourceData(rcc_version, qt_resource_struct, qt_resource_name, qt_resource_data) -qInitResources()