X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fyt3.cpp;h=b42e204a03c6e2cd1444d41c36e1515935cc27f0;hb=77808d40003c9f0182d8ae59f05c1c2e59e9c4c1;hp=f38a76a3142af4539d60b1249599de048979fb3b;hpb=daaeadccc2e0779948d47185222f524a11c68f01;p=minitube diff --git a/src/yt3.cpp b/src/yt3.cpp index f38a76a..b42e204 100644 --- a/src/yt3.cpp +++ b/src/yt3.cpp @@ -55,7 +55,7 @@ YT3::YT3() { qWarning() << "No available API keys"; } else { key = keys.takeFirst(); - testApiKey(); + if (!keys.isEmpty()) testApiKey(); } }