Fix sound plugin crash when change output sink

Change-Id: I4c78f56dc45db2890b8a1d47e9b65426570aa398
This commit is contained in:
石博文 2017-02-24 14:11:18 +08:00
parent b64c3b7f25
commit af7787154e
Notes: Deepin Code Review 2017-02-24 16:31:25 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Fri, 24 Feb 2017 16:31:25 +0800
Reviewed-on: https://cr.deepin.io/20724
Project: dde/dde-dock
Branch: refs/heads/master

View File

@ -29,7 +29,7 @@ SoundItem::SoundItem(QWidget *parent)
m_applet->setVisible(false);
connect(m_applet, static_cast<void (SoundApplet::*)(DBusSink*) const>(&SoundApplet::defaultSinkChanged), this, &SoundItem::sinkChanged);
connect(m_applet, &SoundApplet::volumeChanged, this, &SoundItem::refershTips);
connect(m_applet, &SoundApplet::volumeChanged, this, &SoundItem::refershTips, Qt::QueuedConnection);
}
QWidget *SoundItem::tipsWidget()