blob: 5c0f623cf9b8d8e53df5615152cdb2d104a32747 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
From e7c80f43a3ec0fc2024f64e17d13461840429029 Mon Sep 17 00:00:00 2001
From: Lawrence Rust <lvr@softsystem.co.uk>
Date: Fri, 17 Jun 2016 18:40:37 +0100
Subject: [PATCH 336/348] MythMusic: Fix Playlist::copyTracks and
removeAllTracks
Correct these 2 functions to call gPlayer->activePlaylistChanged
Signed-off-by: Lawrence Rust <lvr@softsystem.co.uk>
---
mythplugins/mythmusic/mythmusic/playlist.cpp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/mythplugins/mythmusic/mythmusic/playlist.cpp b/mythplugins/mythmusic/mythmusic/playlist.cpp
index 79a509a..94146a4 100644
--- a/mythplugins/mythmusic/mythmusic/playlist.cpp
+++ src/mythplugins/mythmusic/mythmusic/playlist.cpp
@@ -46,7 +46,7 @@ bool Playlist::checkTrack(MusicMetadata::IdType trackID) const
void Playlist::copyTracks(Playlist *to_ptr, bool update_display)
{
- disableSaves();
+ to_ptr->disableSaves();
for (int x = 0; x < m_songs.size(); x++)
{
@@ -58,9 +58,9 @@ void Playlist::copyTracks(Playlist *to_ptr, bool update_display)
}
}
- enableSaves();
+ to_ptr->enableSaves();
- changed();
+ to_ptr->changed();
}
/// Given a tracks ID, add that track to this playlist
@@ -94,6 +94,8 @@ void Playlist::removeAllTracks(void)
m_shuffledSongs.clear();
changed();
+
+ gPlayer->activePlaylistChanged(-1, true);
}
void Playlist::removeAllCDTracks(void)
--
1.7.9.5
|