Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
03b57df6
Commit
03b57df6
authored
Oct 22, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Queue: ModifyAtOrder() does not increment version
Leave that to the caller, allowing it to modify multiple items at a time.
parent
4de3b6dc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Playlist.cxx
src/Playlist.cxx
+1
-0
Queue.cxx
src/Queue.cxx
+0
-2
Queue.hxx
src/Queue.hxx
+2
-1
No files found.
src/Playlist.cxx
View file @
03b57df6
...
...
@@ -48,6 +48,7 @@ playlist::TagModified(Song &&song)
current_song
.
ReplaceTag
(
std
::
move
(
*
song
.
tag
));
queue
.
ModifyAtOrder
(
current
);
queue
.
IncrementVersion
();
idle_add
(
IDLE_PLAYLIST
);
}
...
...
src/Queue.cxx
View file @
03b57df6
...
...
@@ -83,8 +83,6 @@ queue::ModifyAtOrder(unsigned _order)
unsigned
position
=
order
[
_order
];
items
[
position
].
version
=
version
;
IncrementVersion
();
}
void
...
...
src/Queue.hxx
View file @
03b57df6
...
...
@@ -241,7 +241,8 @@ struct queue {
void
IncrementVersion
();
/**
* Marks the specified song as "modified" and increments the version
* Marks the specified song as "modified". Call
* IncrementVersion() after all modifications have been made.
* number.
*/
void
ModifyAtOrder
(
unsigned
order
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment