fixing crash on Win and (possibly) Mac when middle mouse clicked on plasma Containment
svn path=/trunk/KDE/kdelibs/; revision=971575
This commit is contained in:
parent
230aae0847
commit
bca2659a0e
@ -1046,6 +1046,9 @@ void ContainmentPrivate::dropData(QGraphicsSceneEvent *event)
|
||||
screenPos = mouseEvent->screenPos();
|
||||
QClipboard *clipboard = QApplication::clipboard();
|
||||
mimeData = clipboard->mimeData(QClipboard::Selection);
|
||||
if (!mimeData) { //Selection is either empty or not sopported on this OS
|
||||
return;
|
||||
}
|
||||
//TODO if that's not supported (ie non-linux) should we try clipboard instead of selection?
|
||||
} else {
|
||||
kDebug() << "unexpected event";
|
||||
|
Loading…
x
Reference in New Issue
Block a user