+ int enable_open = 0;
+ int assets_total = mwindow->session->drag_assets->size();
+ Indexable *idxbl = !assets_total ? 0 :
+ mwindow->session->drag_assets->get(0);
+ if( idxbl ) {
+ if( idxbl->is_asset ) {
+ Asset *asset = (Asset *)idxbl;
+ if( asset->format == FILE_REF )
+ enable_open = 1;
+ }
+ else
+ enable_open = 1;
+ }
+ open_edl->set_enabled(enable_open);
+ int enable_close = mwindow->stack.size() > 0 ? 1 : 0;
+ close_edl->set_enabled(enable_close);
+ int enable_clip = 0;
+ for( int i=0; !enable_clip && i<assets_total; ++i ) {
+ Indexable *idxbl = mwindow->session->drag_assets->get(i);
+ if( !idxbl->is_asset ) enable_clip = 1;
+ }
+ to_clip->set_enabled(enable_clip);