From a4b1452a2282e2f4ce1d71359af46de3f0e8dd94 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Sat, 6 Mar 2010 15:35:02 +0000 Subject: [PATCH] Fix annoying disconnect() messages. --- src/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d4d1fa856..39ac865e0 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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)));