Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkasper93 <kasper93@gmail.com>2013-10-13 05:11:36 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2013-10-13 20:06:49 +0400
commit37e7fcab869a2fe7333deb6f6314214e6e6a1cb0 (patch)
tree8c7fc280218a7bbb366fdae5a2541b690626d9d1 /src
parentea5ed2d79945c4b3604b61c77fe17b1cda766c4e (diff)
DVB: Move channel list to the new section in settings.
Diffstat (limited to 'src')
-rw-r--r--src/mpc-hc/AppSettings.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mpc-hc/AppSettings.cpp b/src/mpc-hc/AppSettings.cpp
index b31b4a5d0..41a3023e9 100644
--- a/src/mpc-hc/AppSettings.cpp
+++ b/src/mpc-hc/AppSettings.cpp
@@ -2059,6 +2059,16 @@ void CAppSettings::UpdateSettings()
copyInt(_T("DVB configuration"), _T("RebuildFilterGraph"), _T("DVBConfiguration"), _T("RebuildFilterGraph"));
copyInt(_T("DVB configuration"), _T("StopFilterGraph"), _T("DVBConfiguration"), _T("StopFilterGraph"));
+ for (int iChannel = 0; ; iChannel++) {
+ CString strTemp, strChannel;
+ strTemp.Format(_T("%d"), iChannel);
+ strChannel = pApp->GetProfileString(_T("DVB configuration"), strTemp);
+ if (strChannel.IsEmpty()) {
+ break;
+ }
+ VERIFY(pApp->WriteProfileString(_T("DVBConfiguration"), strTemp, strChannel));
+ }
+
default:
pApp->WriteProfileInt(IDS_R_SETTINGS, IDS_R_VERSION, APPSETTINGS_VERSION);
}