mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-18 13:54:07 -05: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();
|
mCollectionModel->postMods();
|
||||||
|
|
||||||
ui._hashBox->addAttachments(paths,RS_FILE_REQ_ANONYMOUS_ROUTING /*, 0*/);
|
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
|
#ifdef TO_REMOVE
|
||||||
@ -1268,6 +1274,11 @@ void RsCollectionDialog::fileHashingFinished(QList<HashedFile> hashedFiles)
|
|||||||
mCollection->updateHashes(old_to_new_hashes);
|
mCollection->updateHashes(old_to_new_hashes);
|
||||||
mCollectionModel->postMods();
|
mCollectionModel->postMods();
|
||||||
|
|
||||||
|
if(mFilesBeingHashed.empty())
|
||||||
|
{
|
||||||
|
ui._save_PB->setToolTip(tr(""));
|
||||||
|
ui._save_PB->setEnabled(true);
|
||||||
|
}
|
||||||
updateList();
|
updateList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user