- 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. 3
      src/gui/UBLibActionBar.cpp

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

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

@ -396,9 +396,12 @@ void UBLibActionBar::dropEvent(QDropEvent *event)
onActionRemoveFavorite(); onActionRemoveFavorite();
} }
else if(mpDeleteBtn == pTargetW) else if(mpDeleteBtn == pTargetW)
{
if(mpDeleteBtn->isEnabled())
{ {
onActionTrash(); onActionTrash();
} }
}
else if(mpSocialBtn == pTargetW) else if(mpSocialBtn == pTargetW)
{ {
onActionSocial(); onActionSocial();

Loading…
Cancel
Save