1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-10 16:14:40 +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
GenericPageItem::willAcceptDrag( const QMimeData* data ) const
{
if ( m_get() == NULL )
{
return false;
}
return m_get()->willAcceptDrag(data);
}
@@ -77,6 +81,10 @@ GenericPageItem::willAcceptDrag( const QMimeData* data ) const
bool
GenericPageItem::dropMimeData( const QMimeData* data, Qt::DropAction action )
{
if ( m_get() == NULL )
{
return false;
}
return m_get()->dropMimeData(data, action);
}