cTmdb: simplyfy hintbox calls

This commit is contained in:
2016-11-20 22:54:51 +01:00
parent 627098d937
commit 43383329a7

View File

@@ -63,18 +63,15 @@ cTmdb::cTmdb(std::string epgtitle)
key = g_settings.tmdb_api_key; key = g_settings.tmdb_api_key;
#endif #endif
CHintBox* box = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA)); CHintBox hintbox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_TMDB_READ_DATA));
box->paint(); hintbox.paint();
std::string lang = Lang2ISO639_1(g_settings.language); std::string lang = Lang2ISO639_1(g_settings.language);
GetMovieDetails(lang); GetMovieDetails(lang);
if ((minfo.result < 1 || minfo.overview.empty()) && lang != "en") if ((minfo.result < 1 || minfo.overview.empty()) && lang != "en")
GetMovieDetails("en"); GetMovieDetails("en");
if (box != NULL) { hintbox.hide();
box->hide();
delete box;
}
} }
cTmdb::~cTmdb() cTmdb::~cTmdb()