Merge lp:~xander-deseyn/noise/previousshufflebug into lp:~elementary-apps/noise/trunk

Proposed by Xander
Status: Merged
Merged at revision: 1805
Proposed branch: lp:~xander-deseyn/noise/previousshufflebug
Merge into: lp:~elementary-apps/noise/trunk
Diff against target: 19 lines (+4/-2)
1 file modified
src/PlaybackManager.vala (+4/-2)
To merge this branch: bzr merge lp:~xander-deseyn/noise/previousshufflebug
Reviewer Review Type Date Requested Status
Cody Garver (community) Approve
Review via email: mp+259223@code.launchpad.net

Description of the change

Fixes the back button when in shuffle mode.

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote :

Use spaces instead of tabs next time

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/PlaybackManager.vala'
2--- src/PlaybackManager.vala 2015-03-23 04:51:51 +0000
3+++ src/PlaybackManager.vala 2015-05-15 09:57:58 +0000
4@@ -393,11 +393,13 @@
5
6 var main_settings = Settings.Main.get_default ();
7 if(main_settings.shuffle_mode != Noise.Settings.Shuffle.OFF) {
8- if (_current_shuffled.is_empty)
9+ if (_current_shuffled.is_empty) {
10 foreach (Media s in library.get_medias ())
11 addToCurrent (s); //first initialize the current selection the reshuffle it
12 reshuffle ();
13- _playing_queued_song = false;
14+ }
15+
16+ _playing_queued_song = false;
17
18 if(current_media == null) {
19 _current_shuffled_index = _current_shuffled.size - 1;

Subscribers

People subscribed via source and target branches