- Resolved issue "Sankore-7"

- Modified the document path
- Removed a warning
preferencesAboutTextFull
shibakaneki 13 years ago
parent 1c62ce54ae
commit de0e3ab3ec
  1. 1
      src/board/UBLibraryController.cpp
  2. 8
      src/frameworks/UBDesktopServices_mac.cpp
  3. 5
      src/gui/UBLibActionBar.cpp

@ -374,6 +374,7 @@ QList<UBLibElement*> UBLibraryController::listElementsInPath(const QString& pPat
QList<UBLibElement*> UBLibraryController::listElementsInVirtualForlder(UBLibElement* pElement)
{
Q_UNUSED(pElement);
return mFavoriteList;
}

@ -70,8 +70,7 @@ QString UBDesktopServices::storageLocation(StandardLocation type)
short domain = kOnAppropriateDisk;
if (QDesktopServices::DataLocation == type
|| QDesktopServices::CacheLocation == type)
if (QDesktopServices::DataLocation == type || QDesktopServices::CacheLocation == type)
domain = kUserDomain;
// http://developer.apple.com/documentation/Carbon/Reference/Folder_Manager/Reference/reference.html
@ -82,9 +81,8 @@ QString UBDesktopServices::storageLocation(StandardLocation type)
QString path = getFullPath(ref);
if (QDesktopServices::DataLocation == type
|| QDesktopServices::CacheLocation == type)
path += "/" + QCoreApplication::applicationName();
if (QDesktopServices::DataLocation == type || QDesktopServices::CacheLocation == type)
path += "/Sankore";
return path;
}

@ -397,7 +397,10 @@ void UBLibActionBar::dropEvent(QDropEvent *event)
}
else if(mpDeleteBtn == pTargetW)
{
onActionTrash();
if(mpDeleteBtn->isEnabled())
{
onActionTrash();
}
}
else if(mpSocialBtn == pTargetW)
{

Loading…
Cancel
Save