- int n = drag_assets->size();
- if( n > 0 ) {
- int len = 1;
- for( int i=0; i<n; ++i )
- len += strlen(drag_assets->get(i)->path) + 1;
- char *pats = new char[len], *bp = pats;
- const char *cp = drag_assets->get(0)->path;
+ int n = drag_idxbls->size();
+ if( !n ) return 1;
+ Indexable *idxbl;
+ int len = 0;
+ for( int i=0; i<n; ++i ) {
+ idxbl = drag_idxbls->get(i);
+ if( !idxbl->is_asset &&
+ idxbl->awindow_folder == AW_PROXY_FOLDER )
+ continue;
+ len += strlen(idxbl->get_title()) + 1;
+ }
+ if( !len ) return 1;
+ char *pats = new char[len+1], *bp = pats;
+ for( int i=0; i<n; ++i ) {
+ idxbl = drag_idxbls->get(i);
+ if( !idxbl->is_asset &&
+ idxbl->awindow_folder == AW_PROXY_FOLDER )
+ continue;
+ if( i > 0 ) *bp++ = '\n';
+ const char *cp = idxbl->get_title();