forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
ffa0c86617
commit
44539772a3
@@ -123,8 +123,7 @@ void ResourceHandler::updateResourcesHelper(bool updateProjectResources)
|
|||||||
qDebug() << "ResourceHandler::updateResources()" << fileName;
|
qDebug() << "ResourceHandler::updateResources()" << fileName;
|
||||||
|
|
||||||
// Filename could change in the meantime.
|
// Filename could change in the meantime.
|
||||||
Project *project = SessionManager::projectForFile(
|
Project *project = SessionManager::projectForFile(Utils::FileName::fromUserInput(fileName));
|
||||||
Utils::FileName::fromUserInput(QDir::fromNativeSeparators(fileName)));
|
|
||||||
const bool dirty = m_form->property("_q_resourcepathchanged").toBool();
|
const bool dirty = m_form->property("_q_resourcepathchanged").toBool();
|
||||||
if (dirty)
|
if (dirty)
|
||||||
m_form->setDirty(true);
|
m_form->setDirty(true);
|
||||||
|
Reference in New Issue
Block a user