From: Flavio Tordini Date: Thu, 16 Apr 2015 09:04:07 +0000 (+0200) Subject: Test API key only if there are more than one X-Git-Tag: 2.5~86 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4f8e1058b93bf363d8808ebca16fd53447610c58;p=minitube Test API key only if there are more than one --- 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(); } }