mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CBEBouquetWidget: simplify hintbox calls
Origin commit data
------------------
Commit: 2d9775c36b
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
This commit is contained in:
@@ -502,18 +502,16 @@ std::string CBEBouquetWidget::inputName(const char * const defaultName, const ne
|
||||
|
||||
void CBEBouquetWidget::saveChanges()
|
||||
{
|
||||
CHintBox* hintBox= new CHintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_SAVINGCHANGES), 480); // UTF-8
|
||||
hintBox->paint();
|
||||
CHintBox hintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_SAVINGCHANGES), 480); // UTF-8
|
||||
hintBox.paint();
|
||||
g_Zapit->saveBouquets();
|
||||
hintBox->hide();
|
||||
delete hintBox;
|
||||
hintBox.hide();
|
||||
}
|
||||
|
||||
void CBEBouquetWidget::discardChanges()
|
||||
{
|
||||
CHintBox* hintBox= new CHintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_DISCARDINGCHANGES), 480); // UTF-8
|
||||
hintBox->paint();
|
||||
CHintBox hintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_DISCARDINGCHANGES), 480); // UTF-8
|
||||
hintBox.paint();
|
||||
g_Zapit->restoreBouquets();
|
||||
hintBox->hide();
|
||||
delete hintBox;
|
||||
hintBox.hide();
|
||||
}
|
||||
|
Reference in New Issue
Block a user