Commit 3bcc7f3b authored by Claudio Valerio's avatar Claudio Valerio

fixed path problem

parent c37b2c60
...@@ -47,7 +47,7 @@ UBLibraryController::UBLibraryController(QWidget *pParentWidget, UBBoardControll ...@@ -47,7 +47,7 @@ UBLibraryController::UBLibraryController(QWidget *pParentWidget, UBBoardControll
userPath(mPicturesStandardDirectoryPath); userPath(mPicturesStandardDirectoryPath);
mInteractiveUserDirectoryPath = QUrl::fromLocalFile(UBSettings::settings()->uniboardInteractiveUserDirectory()); mInteractiveUserDirectoryPath = QUrl::fromLocalFile(UBSettings::settings()->uniboardInteractiveUserDirectory());
createInternalWidgetItems(); createInternalWidgetItems();
} }
...@@ -295,7 +295,7 @@ QList<UBLibElement*> UBLibraryController::addVirtualElementsForItemPath(const QS ...@@ -295,7 +295,7 @@ QList<UBLibElement*> UBLibraryController::addVirtualElementsForItemPath(const QS
QUrl path = QUrl::fromLocalFile(UBSettings::settings()->uniboardImageLibraryDirectory()); QUrl path = QUrl::fromLocalFile(UBSettings::settings()->uniboardImageLibraryDirectory());
userPath(path); userPath(path);
content << listElementsInPath(path.toLocalFile()); content << listElementsInPath(path.toLocalFile());
content << listElementsInPath(UBSettings::settings()->uniboardDefaultUserImageLibraryDirectory()); content << listElementsInPath(UBSettings::settings()->uniboardDefaultUserImageLibraryDirectory());
} }
else if (pPath == mInteractiveCategoryPath.toLocalFile()){ else if (pPath == mInteractiveCategoryPath.toLocalFile()){
content << listElementsInPath(UBSettings::settings()->sankoreDistributedInteractiveDirectory()); content << listElementsInPath(UBSettings::settings()->sankoreDistributedInteractiveDirectory());
......
...@@ -1113,7 +1113,7 @@ QString UBSettings::sankoreDistributedInteractiveDirectory() ...@@ -1113,7 +1113,7 @@ QString UBSettings::sankoreDistributedInteractiveDirectory()
{ {
QString defaultRelativePath = QString("./library/sankoreInteractivities"); QString defaultRelativePath = QString("./library/sankoreInteractivities");
QString configPath = value("Library/DefaultUserImageDirectory", QVariant(defaultRelativePath)).toString(); QString configPath = value("Library/sankoreInteractivities", QVariant(defaultRelativePath)).toString();
if (configPath.startsWith(".")) if (configPath.startsWith("."))
{ {
......
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