mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
CNetworkSetup: simplify hintbox calls
Origin commit data
------------------
Commit: f85270f1ed
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)
This commit is contained in:
@@ -578,15 +578,14 @@ void CNetworkSetup::applyNetworkSettings()
|
||||
if (!checkForIP())
|
||||
return;
|
||||
|
||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8
|
||||
hintBox->paint();
|
||||
CHintBox hintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8
|
||||
hintBox.paint();
|
||||
|
||||
networkConfig->stopNetwork();
|
||||
saveNetworkSettings();
|
||||
networkConfig->startNetwork();
|
||||
|
||||
hintBox->hide();
|
||||
delete hintBox;
|
||||
hintBox.hide();
|
||||
}
|
||||
|
||||
//open a message dialog with buttons,
|
||||
|
Reference in New Issue
Block a user