From 458cead9128491deb23d7864104f5d348015b1ca Mon Sep 17 00:00:00 2001 From: "craig.p.drummond@gmail.com" Date: Thu, 16 Aug 2012 17:14:32 +0000 Subject: [PATCH] Dont need to stop dynamizer unless connection details have changed. --- gui/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 89f71dce5..d0a232c5d 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -1655,7 +1655,9 @@ void MainWindow::connectToMpd(const MPDConnectionDetails &details) lyricsPage->text->clear(); serverInfoPage->clear(); #if !defined Q_OS_WIN && !defined CANTATA_ANDROID - Dynamic::self()->stop(); + if (!MPDConnection::self()->getDetails().isEmpty() && details!=MPDConnection::self()->getDetails()) { + Dynamic::self()->stop(); + } #endif showInformation(i18n("Connecting to %1").arg(details.description())); outputsAction->setVisible(false);