Save / restore last used net interface

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1304 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: c49b09e7c9
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-03-16 (Wed, 16 Mar 2011)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2011-03-16 10:59:06 +00:00
parent d428425f6c
commit c67cd22b1c
2 changed files with 7 additions and 1 deletions

View File

@@ -520,6 +520,8 @@ int CNeutrinoApp::loadSetup(const char * fname)
g_settings.network_ntprefresh = configfile.getString("network_ntprefresh", "30" );
g_settings.network_ntpenable = configfile.getBool("network_ntpenable", false);
snprintf(g_settings.ifname, sizeof(g_settings.ifname), "%s", configfile.getString("ifname", "eth0").c_str());;
g_settings.epg_save = configfile.getBool("epg_save", false);
//widget settings
@@ -1069,6 +1071,8 @@ void CNeutrinoApp::saveSetup(const char * fname)
configfile.setString( "network_ntprefresh", g_settings.network_ntprefresh);
configfile.setBool( "network_ntpenable", g_settings.network_ntpenable);
configfile.setString("ifname", g_settings.ifname);
//widget settings
configfile.setBool("widget_fade" , g_settings.widget_fade );
@@ -2205,7 +2209,6 @@ int CNeutrinoApp::run(int argc, char **argv)
NVODChanger = new CNVODChangeExec;
StreamFeaturesChanger = new CStreamFeaturesChangeExec;
MoviePluginChanger = new CMoviePluginChangeExec;
MyIPChanger = new CIPChangeNotifier;
ConsoleDestinationChanger = new CConsoleDestChangeNotifier;
rcLock = new CRCLock();
//USERMENU