Don't try to make an icon with a data: URI - Icon can't handle them.
BUG: 164120 svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=844088
This commit is contained in:
parent
a3fe56c7b1
commit
ba285be2ff
@ -800,10 +800,7 @@ void Containment::dropEvent(QGraphicsSceneDragDropEvent *event)
|
|||||||
// kDebug() << mimeName;
|
// kDebug() << mimeName;
|
||||||
KPluginInfo::List appletList = Applet::listAppletInfoForMimetype(mimeName);
|
KPluginInfo::List appletList = Applet::listAppletInfoForMimetype(mimeName);
|
||||||
|
|
||||||
if (appletList.isEmpty()) {
|
if (!appletList.isEmpty()) {
|
||||||
// no special applet associated with this mimetype, let's
|
|
||||||
addApplet("icon", args, geom);
|
|
||||||
} else {
|
|
||||||
//TODO: should we show a dialog here to choose which plasmoid load if
|
//TODO: should we show a dialog here to choose which plasmoid load if
|
||||||
//!appletList.isEmpty()
|
//!appletList.isEmpty()
|
||||||
QMenu choices;
|
QMenu choices;
|
||||||
@ -824,6 +821,10 @@ void Containment::dropEvent(QGraphicsSceneDragDropEvent *event)
|
|||||||
if (choice) {
|
if (choice) {
|
||||||
addApplet(actionsToPlugins[choice], args, geom);
|
addApplet(actionsToPlugins[choice], args, geom);
|
||||||
}
|
}
|
||||||
|
} else if (url.protocol() != "data") {
|
||||||
|
// We don't try to do anything with data: URIs
|
||||||
|
// no special applet associated with this mimetype, let's
|
||||||
|
addApplet("icon", args, geom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
event->acceptProposedAction();
|
event->acceptProposedAction();
|
||||||
|
Loading…
Reference in New Issue
Block a user