Commit 44539772 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

Designer: Remove a redundant separator transformation

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

Change-Id: I951140e38957f0f3dd5b2ef125e76ffdb04a2da2
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent ffa0c866
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment