mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
d5b2f7dd02
commit
6e0ede2817
@ -139,7 +139,7 @@ void FlowLayoutItem::dropEvent(QDropEvent *event)
|
|||||||
} else {//if (source && source != this)
|
} else {//if (source && source != this)
|
||||||
QWidget *wid =
|
QWidget *wid =
|
||||||
qobject_cast<QWidget *>(event->source());//QT5 return QObject
|
qobject_cast<QWidget *>(event->source());//QT5 return QObject
|
||||||
FlowLayout *layout;
|
FlowLayout *layout = NULL;
|
||||||
if (wid) layout =
|
if (wid) layout =
|
||||||
qobject_cast<FlowLayout *>(wid->layout());
|
qobject_cast<FlowLayout *>(wid->layout());
|
||||||
if (layout) {
|
if (layout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user