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
This commit is contained in:
@@ -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 <shift> is pressed
|
||||
BAutolock _(fPlaylist);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user