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:
drbob 2008-11-09 22:21:14 +00:00
parent aee6cb85b4
commit b0d462c93e
5 changed files with 18 additions and 3 deletions

View file

@ -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;
}