mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CBEBouquetWidget: simplify hintbox calls
This commit is contained in:
@@ -502,18 +502,16 @@ std::string CBEBouquetWidget::inputName(const char * const defaultName, const ne
|
|||||||
|
|
||||||
void CBEBouquetWidget::saveChanges()
|
void CBEBouquetWidget::saveChanges()
|
||||||
{
|
{
|
||||||
CHintBox* hintBox= new CHintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_SAVINGCHANGES), 480); // UTF-8
|
CHintBox hintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_SAVINGCHANGES), 480); // UTF-8
|
||||||
hintBox->paint();
|
hintBox.paint();
|
||||||
g_Zapit->saveBouquets();
|
g_Zapit->saveBouquets();
|
||||||
hintBox->hide();
|
hintBox.hide();
|
||||||
delete hintBox;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CBEBouquetWidget::discardChanges()
|
void CBEBouquetWidget::discardChanges()
|
||||||
{
|
{
|
||||||
CHintBox* hintBox= new CHintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_DISCARDINGCHANGES), 480); // UTF-8
|
CHintBox hintBox(LOCALE_BOUQUETEDITOR_NAME, g_Locale->getText(LOCALE_BOUQUETEDITOR_DISCARDINGCHANGES), 480); // UTF-8
|
||||||
hintBox->paint();
|
hintBox.paint();
|
||||||
g_Zapit->restoreBouquets();
|
g_Zapit->restoreBouquets();
|
||||||
hintBox->hide();
|
hintBox.hide();
|
||||||
delete hintBox;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user