diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2008-03-07 21:59:03 +0300 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2008-03-07 21:59:03 +0300 |
commit | f67604ab2458d5d7dcb6b6b1b098e9a320b47c6b (patch) | |
tree | f3dd6505d153fe9d5653d8615c7fc250f67be544 /src/apps/mplayerc/PPageSubtitles.cpp | |
parent | 470f9ef9ff5ab71722b53e2821a764e2111a2e84 (diff) |
Fixed : message "Please enter an integer"
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@437 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PPageSubtitles.cpp')
-rw-r--r-- | src/apps/mplayerc/PPageSubtitles.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/apps/mplayerc/PPageSubtitles.cpp b/src/apps/mplayerc/PPageSubtitles.cpp index cb5dce7f0..3783bf12c 100644 --- a/src/apps/mplayerc/PPageSubtitles.cpp +++ b/src/apps/mplayerc/PPageSubtitles.cpp @@ -72,6 +72,7 @@ BEGIN_MESSAGE_MAP(CPPageSubtitles, CPPageBase) ON_UPDATE_COMMAND_UI(IDC_STATIC2, OnUpdatePosOverride)
ON_UPDATE_COMMAND_UI(IDC_STATIC3, OnUpdatePosOverride)
ON_UPDATE_COMMAND_UI(IDC_STATIC4, OnUpdatePosOverride)
+ ON_EN_CHANGE(IDC_EDIT4, OnSubDelayInterval)
END_MESSAGE_MAP()
@@ -142,3 +143,13 @@ void CPPageSubtitles::OnUpdatePosOverride(CCmdUI* pCmdUI) UpdateData();
pCmdUI->Enable(m_fOverridePlacement);
}
+
+
+void CPPageSubtitles::OnSubDelayInterval()
+{
+ // If incorrect number, revert modifications
+ if (!UpdateData())
+ UpdateData(FALSE);
+
+ SetModified();
+}
|