mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
disable save button when files are being hashed
This commit is contained in:
parent
0697116289
commit
094c80e046
@ -883,6 +883,12 @@ void RsCollectionDialog::addSelection(bool recursive)
|
||||
mCollectionModel->postMods();
|
||||
|
||||
ui._hashBox->addAttachments(paths,RS_FILE_REQ_ANONYMOUS_ROUTING /*, 0*/);
|
||||
|
||||
if(!mFilesBeingHashed.empty())
|
||||
{
|
||||
ui._save_PB->setToolTip(tr("Please wait for all files to be properly processed before saving."));
|
||||
ui._save_PB->setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef TO_REMOVE
|
||||
@ -1268,6 +1274,11 @@ void RsCollectionDialog::fileHashingFinished(QList<HashedFile> hashedFiles)
|
||||
mCollection->updateHashes(old_to_new_hashes);
|
||||
mCollectionModel->postMods();
|
||||
|
||||
if(mFilesBeingHashed.empty())
|
||||
{
|
||||
ui._save_PB->setToolTip(tr(""));
|
||||
ui._save_PB->setEnabled(true);
|
||||
}
|
||||
updateList();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user