mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-28 02:24:18 -04:00
Small changes to how gui handles files.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@798 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
aee6cb85b4
commit
b0d462c93e
5 changed files with 18 additions and 3 deletions
|
@ -77,6 +77,9 @@ SubFileItem::SubFileItem(std::string hash, std::string name, uint64_t size,
|
|||
{
|
||||
mMode = SFI_STATE_ERROR;
|
||||
}
|
||||
/**** Enable ****
|
||||
*****/
|
||||
|
||||
/* all other states are possible */
|
||||
|
||||
if (!rsFiles)
|
||||
|
@ -98,7 +101,7 @@ SubFileItem::SubFileItem(std::string path)
|
|||
mType = SFI_TYPE_ATTACH;
|
||||
|
||||
/* ask for Files to hash/prepare it for us */
|
||||
if ((!rsFiles) || (rsFiles->ExtraFileHash(path, SFI_DEFAULT_PERIOD, 0)))
|
||||
if ((!rsFiles) || (!rsFiles->ExtraFileHash(path, SFI_DEFAULT_PERIOD, 0)))
|
||||
{
|
||||
mMode = SFI_STATE_ERROR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue