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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user