CNetworkSetup: simplify hintbox calls

Origin commit data
------------------
Branch: ni/coolstream
Commit: f85270f1ed
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-11-20 (Sun, 20 Nov 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2016-11-20 22:50:41 +01:00
parent b69a99f74c
commit 1a8cb67c57

View File

@@ -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,