(qt) #5280 'show options dialog in more cases': fix verify button issue reported by lucke

This commit is contained in:
Jordan Lee 2013-02-10 22:44:25 +00:00
parent 5040778a92
commit b91014ba1e
1 changed files with 9 additions and 0 deletions

View File

@ -332,6 +332,9 @@ Options :: reload ()
myPriorities.clear ();
myWanted.clear ();
if (myVerifyButton)
myVerifyButton->setVisible (myHaveInfo && (myInfo.fileCount>0));
if (myHaveInfo)
{
myPriorities.insert (0, myInfo.fileCount, TR_PRI_NORMAL);
@ -576,6 +579,12 @@ namespace
void
Options :: onTimeout ()
{
if (myFiles.isEmpty())
{
myVerifyTimer.stop ();
return;
}
const tr_file * file = &myInfo.files[myVerifyFileIndex];
if (!myVerifyFilePos && !myVerifyFile.isOpen ())