mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
*neutrino network_setup: ip-check before save settings
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1093 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -403,10 +403,13 @@ void CNetworkSetup::saveNetworkSettings()
|
|||||||
void CNetworkSetup::applyNetworkSettings()
|
void CNetworkSetup::applyNetworkSettings()
|
||||||
{
|
{
|
||||||
printf("[network setup] apply network settings...\n");
|
printf("[network setup] apply network settings...\n");
|
||||||
|
|
||||||
|
if (!checkForIP())
|
||||||
|
return;
|
||||||
|
|
||||||
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NETWORKMENU_APPLY_SETTINGS)); // UTF-8
|
CHintBox * hintBox = new CHintBox(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();
|
||||||
|
Reference in New Issue
Block a user