summaryrefslogtreecommitdiffstats
path: root/utils/themeeditor/models/parsetreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/models/parsetreemodel.cpp')
-rw-r--r--utils/themeeditor/models/parsetreemodel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/themeeditor/models/parsetreemodel.cpp b/utils/themeeditor/models/parsetreemodel.cpp
index e456797a4d..37ec9b01da 100644
--- a/utils/themeeditor/models/parsetreemodel.cpp
+++ b/utils/themeeditor/models/parsetreemodel.cpp
@@ -289,7 +289,8 @@ RBScene* ParseTreeModel::render(ProjectModel* project,
/* Setting themebase if it can't be derived from the project */
if(settings.value("themebase", "") == "" && file && QFile::exists(*file))
{
- QDir base(*file);
+ QFileInfo wpsfile(*file);
+ QDir base(wpsfile.canonicalPath());
base.cdUp();
settings.insert("themebase", base.canonicalPath());
}