From b91014ba1e4f87ee3861e82275594e42f5ff861a Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sun, 10 Feb 2013 22:44:25 +0000 Subject: [PATCH] (qt) #5280 'show options dialog in more cases': fix verify button issue reported by lucke --- qt/options.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qt/options.cc b/qt/options.cc index 17385a15d..9e79826e8 100644 --- a/qt/options.cc +++ b/qt/options.cc @@ -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 ())