Commit de0e3ab3 authored by shibakaneki's avatar shibakaneki

- Resolved issue "Sankore-7"

- Modified the document path
- Removed a warning
parent 1c62ce54
......@@ -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)
{
......
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