1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-13 17:43:59 +02:00

fix segfault due to NULL m_get()

This commit is contained in:
Lorenz H-S
2013-07-10 21:27:43 +02:00
parent 355d8439a5
commit bb7b9f8fb7

View File

@@ -70,6 +70,10 @@ GenericPageItem::icon() const
bool bool
GenericPageItem::willAcceptDrag( const QMimeData* data ) const GenericPageItem::willAcceptDrag( const QMimeData* data ) const
{ {
if ( m_get() == NULL )
{
return false;
}
return m_get()->willAcceptDrag(data); return m_get()->willAcceptDrag(data);
} }
@@ -77,6 +81,10 @@ GenericPageItem::willAcceptDrag( const QMimeData* data ) const
bool bool
GenericPageItem::dropMimeData( const QMimeData* data, Qt::DropAction action ) GenericPageItem::dropMimeData( const QMimeData* data, Qt::DropAction action )
{ {
if ( m_get() == NULL )
{
return false;
}
return m_get()->dropMimeData(data, action); return m_get()->dropMimeData(data, action);
} }