don't allow user to cancel attachment before hashing is finished

(file stays hashed in extra but does not appear among msg files)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3792 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
chrisparker126 2010-11-14 19:15:42 +00:00
parent 173dbfc18d
commit 1597bd9136

View File

@ -227,7 +227,7 @@ void SubFileItem::updateItemStatic()
playButton->setEnabled(false); playButton->setEnabled(false);
downloadButton->setEnabled(false); downloadButton->setEnabled(false);
cancelButton->setEnabled(true); cancelButton->setEnabled(false);
progressBar->setValue(0); progressBar->setValue(0);
filename = "[" + tr("EXTRA") + "] " + filename; filename = "[" + tr("EXTRA") + "] " + filename;
@ -255,7 +255,7 @@ void SubFileItem::updateItemStatic()
case SFI_STATE_LOCAL: case SFI_STATE_LOCAL:
playButton->setEnabled(true); playButton->setEnabled(true);
downloadButton->setEnabled(false); downloadButton->setEnabled(false);
cancelButton->setEnabled(false); cancelButton->setEnabled(true);
progressBar->setValue(mFileSize / mDivisor); progressBar->setValue(mFileSize / mDivisor);
filename = "[" + tr("LOCAL") + "] " + filename + " (" + misc::friendlyUnit(mFileSize) + ")"; filename = "[" + tr("LOCAL") + "] " + filename + " (" + misc::friendlyUnit(mFileSize) + ")";