mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
disable save button when files are being hashed
This commit is contained in:
parent
0697116289
commit
094c80e046
1 changed files with 11 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue