From 4f8e1058b93bf363d8808ebca16fd53447610c58 Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Thu, 16 Apr 2015 11:04:07 +0200 Subject: [PATCH] Test API key only if there are more than one --- src/yt3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } -- 2.39.5