From 384f38c12dfc086b2c10f86ba31f3d2059442d6a Mon Sep 17 00:00:00 2001 From: thilo Date: Sun, 30 Jan 2011 13:26:55 +0000 Subject: [PATCH] *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 --- src/gui/network_setup.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/network_setup.cpp b/src/gui/network_setup.cpp index 53346932f..fb240789b 100644 --- a/src/gui/network_setup.cpp +++ b/src/gui/network_setup.cpp @@ -403,10 +403,13 @@ void CNetworkSetup::saveNetworkSettings() void CNetworkSetup::applyNetworkSettings() { 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 hintBox->paint(); - + networkConfig->stopNetwork(); saveNetworkSettings(); networkConfig->startNetwork();