Hide htbackdrops from about pages if we have no API key

This commit is contained in:
craig.p.drummond
2013-06-04 18:34:32 +00:00
committed by craig.p.drummond
parent 0144fe143f
commit f140ab7c1b
4 changed files with 11 additions and 7 deletions

View File

@@ -56,7 +56,7 @@
#define DBUG qDebug()
#endif
static const QLatin1String constApiKey(""); // TODO: Apply for API key!!!
const QLatin1String ContextPage::constApiKey(0); // API key required
const QLatin1String ContextPage::constCacheDir("backdrops/");
static QString cacheFileName(const QString &artist, bool createDir)
@@ -69,7 +69,7 @@ ContextPage::ContextPage(QWidget *parent)
, job(0)
, drawBackdrop(true)
, darkBackground(false)
, useHtBackdrops(!QString(constApiKey).isEmpty())
, useHtBackdrops(0!=constApiKey.latin1())
, fadeValue(0)
, isWide(false)
, stack(0)