(qt) #5280 'show options dialog in more cases': fix verify button issue reported by lucke
This commit is contained in:
parent
5040778a92
commit
b91014ba1e
|
@ -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 ())
|
||||
|
|
Loading…
Reference in New Issue