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++
Qt6: explicitly create the QUUid from a QString
Halla Rempt642f17640d20
diff --git a/libs/ui/KisWindowLayoutResource.cpp b/libs/ui/KisWindowLayoutResource.cppindex 592b2c769f..2fcec19221 100644--- a/libs/ui/KisWindowLayoutResource.cpp+++ b/libs/ui/KisWindowLayoutResource.cpp@@ -368,7 +368,7 @@ void KisWindowLayoutResource::loadXml(const QDomElement &element) const{d->showImageInAllWindows = KisDomUtils::toInt(element.attribute("showImageInAllWindows", "0"));d->primaryWorkspaceFollowsFocus = KisDomUtils::toInt(element.attribute("primaryWorkspaceFollowsFocus", "0"));- d->primaryWindow = element.attribute("primaryWindow");+ d->primaryWindow = QUuid::fromString(element.attribute("primaryWindow"));#ifdef Q_OS_ANDROIDif (element.firstChildElement("window") != element.lastChildElement("window")) {