From c6c220e98f77e987468f0dafcb5fd6a72dcb3bfb Mon Sep 17 00:00:00 2001 From: Fredrik Modeen Date: Sun, 30 Aug 2009 12:17:33 +0000 Subject: [PATCH] Open playlist from the playlist window hits B_REFS_RECEIVED and the drag and drop out side of playlistview hits B_SIMPLE_DATA, so adding append_index from the B_REFS_RECEIVED fixes the ticket #4332. + spel fix. Stippi what do you think? +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32828 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/mediaplayer/MainWin.cpp | 2 +- src/apps/mediaplayer/playlist/PlaylistWindow.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/MainWin.cpp b/src/apps/mediaplayer/MainWin.cpp index 71d3297e09..73bcca919a 100644 --- a/src/apps/mediaplayer/MainWin.cpp +++ b/src/apps/mediaplayer/MainWin.cpp @@ -848,7 +848,7 @@ MainWin::VideoFormatChange(int width, int height, int widthAspect, void MainWin::_RefsReceived(BMessage* msg) { - // the playlist ist replaced by dropped files + // the playlist is replaced by dropped files // or the dropped files are appended to the end // of the existing playlist if is pressed BAutolock _(fPlaylist); diff --git a/src/apps/mediaplayer/playlist/PlaylistWindow.cpp b/src/apps/mediaplayer/playlist/PlaylistWindow.cpp index 70549b792b..a71492d0f5 100644 --- a/src/apps/mediaplayer/playlist/PlaylistWindow.cpp +++ b/src/apps/mediaplayer/playlist/PlaylistWindow.cpp @@ -141,6 +141,8 @@ PlaylistWindow::MessageReceived(BMessage* message) } case B_REFS_RECEIVED: + // Used for when we open a playlist from playlist window + message->AddInt32("append_index", -1); case B_SIMPLE_DATA: { // only accept this message when it comes from the // player window, _not_ when it is dropped in this window