diff --git a/src/XMLimport.cpp b/src/XMLimport.cpp index 7f13b37517a..64832ba45d3 100644 --- a/src/XMLimport.cpp +++ b/src/XMLimport.cpp @@ -786,6 +786,10 @@ void XMLimport::readHost(Host* pHost) pHost->mMapperShowRoomBorders = readDefaultTrueBool(qsl("mMapperShowRoomBorders")); pHost->mEditorTheme = attributes().value(QLatin1String("mEditorTheme")).toString(); pHost->mEditorThemeFile = attributes().value(QLatin1String("mEditorThemeFile")).toString(); + if (pHost->mEditorTheme.isEmpty() || pHost->mEditorThemeFile.isEmpty()) { + pHost->mEditorTheme = qsl("Mudlet"); + pHost->mEditorThemeFile = qsl("Mudlet.tmTheme"); + } pHost->mThemePreviewItemID = attributes().value(QLatin1String("mThemePreviewItemID")).toInt(); pHost->mThemePreviewType = attributes().value(QLatin1String("mThemePreviewType")).toString(); pHost->setHaveColorSpaceId(attributes().value(QLatin1String("mSGRCodeHasColSpaceId")).toString() == QLatin1String("yes"));