mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
CNetworkSetup: simplify hintbox calls
This commit is contained in:
@@ -578,15 +578,14 @@ void CNetworkSetup::applyNetworkSettings()
|
|||||||
if (!checkForIP())
|
if (!checkForIP())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8
|
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8
|
||||||
hintBox->paint();
|
hintBox.paint();
|
||||||
|
|
||||||
networkConfig->stopNetwork();
|
networkConfig->stopNetwork();
|
||||||
saveNetworkSettings();
|
saveNetworkSettings();
|
||||||
networkConfig->startNetwork();
|
networkConfig->startNetwork();
|
||||||
|
|
||||||
hintBox->hide();
|
hintBox.hide();
|
||||||
delete hintBox;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//open a message dialog with buttons,
|
//open a message dialog with buttons,
|
||||||
|
Reference in New Issue
Block a user