mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 15:39:27 -05:00
Merge pull request #820 from csoler/v0.6-EditPosts
hide download buttons when the file is local in sub file item
This commit is contained in:
commit
32b7003d49
@ -130,7 +130,9 @@ void SubFileItem::Setup()
|
||||
}
|
||||
}
|
||||
|
||||
deleteButton->setVisible(mFlag & SFI_FLAG_DELETE);
|
||||
deleteButton->setVisible(mFlag & SFI_FLAG_ALLOW_DELETE);
|
||||
downloadButton->setVisible(mMode < SFI_STATE_LOCAL);
|
||||
cancelButton->setVisible(mMode < SFI_STATE_LOCAL);
|
||||
|
||||
smaller();
|
||||
updateItemStatic();
|
||||
|
@ -41,7 +41,8 @@ const uint32_t SFI_TYPE_CHANNEL = 0x0010;
|
||||
const uint32_t SFI_TYPE_ATTACH = 0x0020;
|
||||
|
||||
const uint32_t SFI_FLAG_CREATE = 0x1000;
|
||||
const uint32_t SFI_FLAG_DELETE = 0x2000;
|
||||
const uint32_t SFI_FLAG_ALLOW_DELETE = 0x2000;
|
||||
const uint32_t SFI_FLAG_NO_DOWNLOAD = 0x4000;
|
||||
|
||||
|
||||
//! This create a gui widget that allows users to access files shared by user
|
||||
|
@ -351,7 +351,7 @@ void CreateGxsChannelMsg::addAttachment(const RsFileHash &hash, const std::strin
|
||||
|
||||
/* add widget in for new destination */
|
||||
|
||||
uint32_t flags = SFI_TYPE_CHANNEL | SFI_FLAG_DELETE;
|
||||
uint32_t flags = SFI_TYPE_CHANNEL | SFI_FLAG_ALLOW_DELETE ;
|
||||
if (local)
|
||||
{
|
||||
flags |= SFI_STATE_LOCAL;
|
||||
|
Loading…
Reference in New Issue
Block a user