diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-04-10 16:34:23 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-04-10 16:34:23 +0400 |
commit | 97963b66a0dd9d294de189c73a3daa425984750c (patch) | |
tree | cbf05ddc314420d786808f5243910460f22cc6bf /src/apps/mplayerc/PlayerPlaylistBar.cpp | |
parent | efbc9d9043ff8ff92716ddd00a5f61412d535593 (diff) |
-Fixed navigation panel is now closed when opening any new source (m_iPlaybackmode attribute has been encapsulated in GetPlaybackMode and SetPlaybackMode methods)
-Fixed possible coding error in Mainfrm.cpp function OnPlayPlay(): "else if (m_iPlaybackMode = PM_FILE) OnPlayPlay()" "=" replaced by "=="
Patch by XPC
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1786 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerPlaylistBar.cpp')
-rw-r--r-- | src/apps/mplayerc/PlayerPlaylistBar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apps/mplayerc/PlayerPlaylistBar.cpp b/src/apps/mplayerc/PlayerPlaylistBar.cpp index 473f833d9..713151cea 100644 --- a/src/apps/mplayerc/PlayerPlaylistBar.cpp +++ b/src/apps/mplayerc/PlayerPlaylistBar.cpp @@ -1277,7 +1277,7 @@ void CPlayerPlaylistBar::OnContextMenu(CWnd* /*pWnd*/, CPoint p) };
m.AppendMenu(MF_STRING|(!fOnItem?(MF_DISABLED|MF_GRAYED):MF_ENABLED), M_OPEN, ResStr(IDS_PLAYLIST_OPEN));
- if(((CMainFrame*)AfxGetMainWnd())->m_iPlaybackMode == PM_CAPTURE) m.AppendMenu(MF_STRING|MF_ENABLED, M_ADD, ResStr(IDS_PLAYLIST_ADD));
+ if(((CMainFrame*)AfxGetMainWnd())->GetPlaybackMode() == PM_CAPTURE) m.AppendMenu(MF_STRING|MF_ENABLED, M_ADD, ResStr(IDS_PLAYLIST_ADD));
m.AppendMenu(MF_STRING|(/*fSelected||*/!fOnItem?(MF_DISABLED|MF_GRAYED):MF_ENABLED), M_REMOVE, ResStr(IDS_PLAYLIST_REMOVE));
m.AppendMenu(MF_SEPARATOR);
m.AppendMenu(MF_STRING|(!fOnItem?(MF_DISABLED|MF_GRAYED):MF_ENABLED), M_CLIPBOARD, ResStr(IDS_PLAYLIST_COPYTOCLIPBOARD));
|