Corrected an issue related to accessing the applications from the library palette.

preferencesAboutTextFull
shibakaneki 14 years ago
parent 7823babd14
commit 173912dfb1
  1. 4
      src/board/UBLibraryController.cpp

@ -321,8 +321,10 @@ QImage* UBLibraryController::thumbnailForFile(UBLibElement* pElement)
QList<UBLibElement*> UBLibraryController::addVirtualElementsForItemPath(const QString& pPath) QList<UBLibElement*> UBLibraryController::addVirtualElementsForItemPath(const QString& pPath)
{ {
QList<UBLibElement*> content; QList<UBLibElement*> content;
if (pPath == mInteractiveUserDirectoryPath.toLocalFile()) if (pPath == mInteractiveUserDirectoryPath.toLocalFile()){
content << mInternalLibElements; content << mInternalLibElements;
content << listElementsInPath(UBSettings::settings()->uniboardInteractiveLibraryDirectory());
}
else if (pPath == mPicturesStandardDirectoryPath.toLocalFile()){ else if (pPath == mPicturesStandardDirectoryPath.toLocalFile()){
QUrl path = QUrl::fromLocalFile(UBSettings::settings()->uniboardImageLibraryDirectory()); QUrl path = QUrl::fromLocalFile(UBSettings::settings()->uniboardImageLibraryDirectory());
userPath(path); userPath(path);

Loading…
Cancel
Save