diff --git a/src/plugins/resourceeditor/resourceeditorplugin.cpp b/src/plugins/resourceeditor/resourceeditorplugin.cpp index 72cb090abb1..75fce8a13d0 100644 --- a/src/plugins/resourceeditor/resourceeditorplugin.cpp +++ b/src/plugins/resourceeditor/resourceeditorplugin.cpp @@ -65,7 +65,7 @@ using namespace ResourceEditor::Internal; static const char resourcePrefix[] = ":"; -static const char urlPrefix[] = "qrc://"; +static const char urlPrefix[] = "qrc:"; class PrefixLangDialog : public QDialog { diff --git a/src/plugins/resourceeditor/resourcenode.cpp b/src/plugins/resourceeditor/resourcenode.cpp index 450538dac2f..d270507f797 100644 --- a/src/plugins/resourceeditor/resourcenode.cpp +++ b/src/plugins/resourceeditor/resourcenode.cpp @@ -161,7 +161,10 @@ void ResourceTopLevelNode::update() // Note: this is wrong, but the qrceditor doesn't allow it either // only aliases need to be unique } else { - const QString qrcPath = QDir::cleanPath(prefix + QLatin1Char('/') + alias); + QString prefixWithSlash = prefix; + if (!prefixWithSlash.endsWith(QLatin1Char('/'))) + prefixWithSlash.append(QLatin1Char('/')); + const QString qrcPath = QDir::cleanPath(prefixWithSlash + alias); fileNames.insert(fileName); filesToAdd[qMakePair(prefix, lang)] << new ResourceFileNode(fileName, qrcPath, this);