Forráskód Böngészése

getDataFile() now returns the complete path (dropped last segment).

Sascha Zelzer 14 éve
szülő
commit
06923c5f6a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      Libs/PluginFramework/ctkPluginContext.cpp

+ 1 - 1
Libs/PluginFramework/ctkPluginContext.cpp

@@ -106,7 +106,7 @@ QFileInfo ctkPluginContext::getDataFile(const QString& filename)
 {
   Q_D(ctkPluginContext);
   d->isPluginContextValid();
-  QDir dataRoot(d->plugin->getDataRoot().absolutePath());
+  QDir dataRoot(d->plugin->getDataRoot().absoluteFilePath());
   if (!dataRoot.exists())
   {
     if (!dataRoot.mkpath(dataRoot.absolutePath()))