Fix dock panel has dangling entry

Change-Id: Id928ee9d89d2e0771a71e83357bac4dd074e9766
This commit is contained in:
石博文 2017-05-04 10:09:27 +08:00
parent 023ed668e9
commit 0785cd9623
Notes: Deepin Code Review 2017-05-04 10:28:23 +08:00
Verified+1: Anonymous Coward #1000004
Code-Review+2: 石博文 <sbw@sbw.so>
Submitted-by: 石博文 <sbw@sbw.so>
Submitted-at: Thu, 04 May 2017 10:28:20 +0800
Reviewed-on: https://cr.deepin.io/22799
Project: dde/dde-dock
Branch: refs/heads/master
2 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ DockItemController::DockItemController(QObject *parent)
connect(m_updatePluginsOrderTimer, &QTimer::timeout, this, &DockItemController::updatePluginsItemOrderKey);
connect(m_appInter, &DBusDock::EntryAdded, this, &DockItemController::appItemAdded);
connect(m_appInter, &DBusDock::EntryRemoved, this, static_cast<void (DockItemController::*)(const QString &)>(&DockItemController::appItemRemoved));
connect(m_appInter, &DBusDock::EntryRemoved, this, static_cast<void (DockItemController::*)(const QString &)>(&DockItemController::appItemRemoved), Qt::QueuedConnection);
connect(m_appInter, &DBusDock::ServiceRestarted, this, &DockItemController::reloadAppItems);
connect(m_pluginsInter, &DockPluginsController::pluginItemInserted, this, &DockItemController::pluginItemInserted, Qt::QueuedConnection);

View File

@ -191,7 +191,7 @@ void DockItem::showPopupWindow(QWidget * const content, const bool model)
DockPopupWindow *popup = PopupWindow.get();
QWidget *lastContent = popup->getContent();
if (lastContent)
lastContent->hide();
lastContent->setVisible(false);
switch (DockPosition)
{