1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 10:48:33 +01:00

Fix annoying disconnect() messages.

This commit is contained in:
John Maguire 2010-03-06 15:35:02 +00:00
parent 3fe0213106
commit a4b1452a22

View File

@ -678,7 +678,7 @@ void MainWindow::NewPlaylist(const QString& title) {
void MainWindow::SetCurrentPlaylist(PlaylistView* current) {
// Disconnect current playlist and tab.
if (current) {
if (current_playlist_) {
disconnect(current_playlist_, SIGNAL(CurrentSongChanged(Song)), osd_, SLOT(SongChanged(Song)));
disconnect(current_playlist_view_, SIGNAL(doubleClicked(QModelIndex)),
this, SLOT(PlayIndex(QModelIndex)));