Designer: Remove a redundant separator transformation

FileName::fromUserInput uses QDir::cleanPath, which transforms the separators.

Change-Id: I951140e38957f0f3dd5b2ef125e76ffdb04a2da2
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2016-01-06 12:34:15 +02:00
committed by Orgad Shaneh
parent ffa0c86617
commit 44539772a3

View File

@@ -123,8 +123,7 @@ void ResourceHandler::updateResourcesHelper(bool updateProjectResources)
qDebug() << "ResourceHandler::updateResources()" << fileName;
// Filename could change in the meantime.
Project *project = SessionManager::projectForFile(
Utils::FileName::fromUserInput(QDir::fromNativeSeparators(fileName)));
Project *project = SessionManager::projectForFile(Utils::FileName::fromUserInput(fileName));
const bool dirty = m_form->property("_q_resourcepathchanged").toBool();
if (dirty)
m_form->setDirty(true);