Fix annoying disconnect() messages.

This commit is contained in:
John Maguire 2010-03-06 15:35:02 +00:00
parent 3fe0213106
commit a4b1452a22
1 changed files with 1 additions and 1 deletions

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)));