diff --git a/smb4k/iconview/smb4ksharesiconview.cpp b/smb4k/iconview/smb4ksharesiconview.cpp index f7a7d96..1b08751 100644 --- a/smb4k/iconview/smb4ksharesiconview.cpp +++ b/smb4k/iconview/smb4ksharesiconview.cpp @@ -150,7 +150,7 @@ void Smb4KSharesIconView::contentsDropEvent( TQDropEvent *e ) { if ( dest.equals( *it, true ) ) { - if ( e->source() == this || TQT_BASE_OBJECT(e->source()->parent()) == TQT_BASE_OBJECT(this) ) + if ( e->source() == this || e->source()->parent() == this ) { e->ignore(); diff --git a/smb4k/listview/smb4kshareslistview.cpp b/smb4k/listview/smb4kshareslistview.cpp index dd29a7b..6519698 100644 --- a/smb4k/listview/smb4kshareslistview.cpp +++ b/smb4k/listview/smb4kshareslistview.cpp @@ -155,7 +155,7 @@ void Smb4KSharesListView::contentsDropEvent( TQDropEvent *e ) { if ( dest.equals( *it, true ) ) { - if ( e->source() == this || TQT_BASE_OBJECT(e->source()->parent()) == TQT_BASE_OBJECT(this) ) + if ( e->source() == this || e->source()->parent() == this ) { e->ignore();