- change some hintboxes

Conflicts:
	src/neutrino.cpp

Signed-off-by: Thilo Graf <dbt@novatux.de>

I'm not enthused of this solution to misuse the CHint destructor since
commit 1cb25e7cd3 "- hintbox: add setDelay() prototype".
I think such tasks with delay impact are not the designation of
destructors and avoidable. Unless it is absolutely necessary.
Therefore, I think this is only a temporary solution.
This commit is contained in:
svenhoefer
2021-09-30 22:56:15 +02:00
committed by Thilo Graf
parent 887d2f1cb5
commit 3f34ab5877
3 changed files with 15 additions and 11 deletions

View File

@@ -886,11 +886,13 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
}
else if (actionKey == "save_movie_info")
{
CHintBox loadBox(LOCALE_MOVIEBROWSER_HEAD,g_Locale->getText(LOCALE_MOVIEBROWSER_MENU_SAVE));
loadBox.paint();
CHint *loadBox = new CHint(LOCALE_MOVIEBROWSER_MENU_SAVE);
loadBox->setDelay(1);
loadBox->paint();
m_movieInfo.saveMovieInfo(*m_movieSelectionHandler);
sleep(1); // small delay for very fast hardware
loadBox.hide();
delete loadBox;
}
else if (actionKey == "save_movie_info_all")
{
@@ -903,8 +905,10 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
if (current_list == NULL || m_movieSelectionHandler == NULL)
return returnval;
CHintBox loadBox(LOCALE_MOVIEBROWSER_HEAD,g_Locale->getText(LOCALE_MOVIEBROWSER_INFO_HEAD_UPDATE));
loadBox.paint();
CHint *loadBox = new CHint(LOCALE_MOVIEBROWSER_INFO_HEAD_UPDATE);
loadBox->setDelay(1);
loadBox->paint();
for (unsigned int i = 0; i< current_list->size();i++)
{
if (!((*current_list)[i]->parentalLockAge != 0 && movieInfoUpdateAllIfDestEmptyOnly == true) &&
@@ -933,8 +937,8 @@ int CMovieBrowser::exec(CMenuTarget* parent, const std::string & actionKey)
m_movieInfo.saveMovieInfo(*((*current_list)[i]));
}
sleep(1); // small delay for very fast hardware
loadBox.hide();
delete loadBox;
}
else if (actionKey == "reload_movie_info")
{