*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:
thilo
2011-01-30 13:26:55 +00:00
parent 6b23e1264a
commit 384f38c12d

View File

@@ -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();