Fixed uninitialized pointer read in FlowLayoutItem::dropEvent.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8459 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-14 23:17:55 +00:00
parent d5b2f7dd02
commit 6e0ede2817

View File

@ -139,7 +139,7 @@ void FlowLayoutItem::dropEvent(QDropEvent *event)
} else {//if (source && source != this)
QWidget *wid =
qobject_cast<QWidget *>(event->source());//QT5 return QObject
FlowLayout *layout;
FlowLayout *layout = NULL;
if (wid) layout =
qobject_cast<FlowLayout *>(wid->layout());
if (layout) {