1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-22 21:54:00 +02:00

Merge pull request #201 from lorenzhs/dragging

fix segfault due to NULL m_get()
This commit is contained in:
Uwe L. Korn
2013-07-10 12:38:33 -07:00

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);
}