diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-01-06 12:34:15 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-01-06 14:29:08 +0000 |
commit | 44539772a3c11e34e592b47a6b1aba701851023d (patch) | |
tree | 8cb2b41303585435bfa8457bf32bc554a31e068f | |
parent | ffa0c86617c2877b8efc9a9d652f35550c8c288a (diff) |
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>
-rw-r--r-- | src/plugins/designer/resourcehandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/designer/resourcehandler.cpp b/src/plugins/designer/resourcehandler.cpp index c629e2d14c..dbf8055b67 100644 --- a/src/plugins/designer/resourcehandler.cpp +++ b/src/plugins/designer/resourcehandler.cpp @@ -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); |