Fix stopped ambience updating the music label when it shouldn't (#948)
This commit is contained in:
		
							parent
							
								
									d680a6afdb
								
							
						
					
					
						commit
						f2cf70232e
					
				@ -152,7 +152,7 @@ QString AOMusicPlayer::play(QString p_song, int channel, bool loop,
 | 
				
			|||||||
  QString p_song_clear = QUrl(p_song).fileName();
 | 
					  QString p_song_clear = QUrl(p_song).fileName();
 | 
				
			||||||
  p_song_clear = p_song_clear.left(p_song_clear.lastIndexOf('.'));
 | 
					  p_song_clear = p_song_clear.left(p_song_clear.lastIndexOf('.'));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if (is_stop) {
 | 
					  if (is_stop && channel == 0) { // don't send text on channels besides 0
 | 
				
			||||||
    return QObject::tr("None");
 | 
					    return QObject::tr("None");
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user