]> git.sur5r.net Git - minitube/commitdiff
Test API key only if there are more than one
authorFlavio Tordini <flavio.tordini@gmail.com>
Thu, 16 Apr 2015 09:04:07 +0000 (11:04 +0200)
committerFlavio Tordini <flavio.tordini@gmail.com>
Mon, 27 Apr 2015 12:37:29 +0000 (14:37 +0200)
src/yt3.cpp

index f38a76a3142af4539d60b1249599de048979fb3b..b42e204a03c6e2cd1444d41c36e1515935cc27f0 100644 (file)
@@ -55,7 +55,7 @@ YT3::YT3() {
         qWarning() << "No available API keys";
     } else {
         key = keys.takeFirst();
-        testApiKey();
+        if (!keys.isEmpty()) testApiKey();
     }
 }