fixed path problem

preferencesAboutTextFull
Claudio Valerio 14 years ago
parent c37b2c606f
commit 3bcc7f3b5f
  1. 4
      src/board/UBLibraryController.cpp
  2. 2
      src/core/UBSettings.cpp

@ -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
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()
{ {
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("."))
{ {

Loading…
Cancel
Save