mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
add log if load plugin failed
Change-Id: I9ab7497f2fbdb5ead027a49194ed8db9bfc71f56
This commit is contained in:
parent
ea1b02646d
commit
085b197454
Notes:
Deepin Code Review
2017-04-26 12:46:35 +08:00
Verified+1: Anonymous Coward #1000004 Code-Review+2: 石博文 <sbw@sbw.so> Submitted-by: 石博文 <sbw@sbw.so> Submitted-at: Wed, 26 Apr 2017 12:46:32 +0800 Reviewed-on: https://cr.deepin.io/22546 Project: dde/dde-dock Branch: refs/heads/master
@ -121,6 +121,7 @@ void DockPluginsController::loadPlugin(const QString &pluginFile)
|
||||
PluginsItemInterface *interface = qobject_cast<PluginsItemInterface *>(pluginLoader->instance());
|
||||
if (!interface)
|
||||
{
|
||||
qWarning() << "load plugin failed!!!" << pluginLoader->errorString() << pluginFile;
|
||||
pluginLoader->unload();
|
||||
pluginLoader->deleteLater();
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user