diff options
author | v0lt <v0lt@rambler.ru> | 2013-05-01 14:35:07 +0400 |
---|---|---|
committer | v0lt <v0lt@rambler.ru> | 2013-05-01 14:35:07 +0400 |
commit | 9c67509776840678047495dfa8f8d746dacb5616 (patch) | |
tree | 88587bf7e9066f9394211645a5135a5af5ea5b7d | |
parent | 88fbe1acd8a569885a22db979cdb5f916805211b (diff) |
Page "Formats": a list of extensions in the input field is now synchronized with the general list.
-rw-r--r-- | src/mpc-hc/PPageFormats.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mpc-hc/PPageFormats.cpp b/src/mpc-hc/PPageFormats.cpp index d70a050ce..e2910c657 100644 --- a/src/mpc-hc/PPageFormats.cpp +++ b/src/mpc-hc/PPageFormats.cpp @@ -517,6 +517,10 @@ void CPPageFormats::OnBnClickedResetExtensionsList() mfc.RestoreDefaultExts();
m_exts = mfc.GetExtsWithPeriod();
+ CString label;
+ label.Format(_T("%s (%s)"), mfc.GetDescription(), mfc.GetExts());
+ m_list.SetItemText(i, COL_CATEGORY, label);
+
UpdateMediaCategoryState(iItem);
UpdateData(FALSE);
@@ -537,6 +541,10 @@ void CPPageFormats::OnBnClickedSetExtensionsList() mfc.SetExts(m_exts);
m_exts = mfc.GetExtsWithPeriod();
+ CString label;
+ label.Format(_T("%s (%s)"), mfc.GetDescription(), mfc.GetExts());
+ m_list.SetItemText(i, COL_CATEGORY, label);
+
UpdateMediaCategoryState(iItem);
UpdateData(FALSE);
|