- Indexable *indexable = mwindow->session->drag_assets->size() ?
- mwindow->session->drag_assets->get(0) :
- 0;
- EDL *edl = mwindow->session->drag_clips->size() ?
- mwindow->session->drag_clips->get(0) :
- 0;
- if(indexable)
+ Indexable *indexable =
+ mwindow->session->drag_assets->size() > 0 ?
+ (Indexable *)mwindow->session->drag_assets->get(0) :
+ mwindow->session->drag_clips->size() > 0 ?
+ (Indexable *)mwindow->session->drag_clips->get(0) : 0;
+ if( indexable )