X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fassetpopup.C;h=9eda28d72e521d62e515118400463b5377234b1b;hp=bc4281642a3563acd1bfb4c671c72ae77d4a0849;hb=c9c0e07706fad701a70ee0d1ffb0fcb6304f138c;hpb=d830901b11606a7838791bc45e39130329db99f0 diff --git a/cinelerra-5.1/cinelerra/assetpopup.C b/cinelerra-5.1/cinelerra/assetpopup.C index bc428164..9eda28d7 100644 --- a/cinelerra-5.1/cinelerra/assetpopup.C +++ b/cinelerra-5.1/cinelerra/assetpopup.C @@ -99,19 +99,15 @@ void AssetPopup::create_objects() void AssetPopup::paste_assets() { -// Collect items into the drag vectors for temporary storage - gui->lock_window("AssetPopup::paste_assets"); - mwindow->gui->lock_window("AssetPopup::paste_assets"); - mwindow->cwindow->gui->lock_window("AssetPopup::paste_assets"); - int proxy = mwindow->edl->session->awindow_folder == AW_PROXY_FOLDER ? 1 : 0; gui->collect_assets(proxy); +// Collect items into the drag vectors for temporary storage + gui->unlock_window(); + mwindow->gui->lock_window("AssetPopup::paste_assets"); mwindow->paste_assets(mwindow->edl->local_session->get_selectionstart(1), mwindow->edl->tracks->first, 0); // do not overwrite - - gui->unlock_window(); mwindow->gui->unlock_window(); - mwindow->cwindow->gui->unlock_window(); + gui->lock_window("AssetPopup::paste_assets"); } void AssetPopup::match_size() @@ -302,8 +298,10 @@ AssetPopupBuildIndex::~AssetPopupBuildIndex() int AssetPopupBuildIndex::handle_event() { + popup->unlock_window(); //printf("AssetPopupBuildIndex::handle_event 1\n"); mwindow->rebuild_indices(); + popup->lock_window("AssetPopupBuildIndex::handle_event"); return 1; } @@ -394,9 +392,11 @@ AssetPopupOpenMixer::~AssetPopupOpenMixer() int AssetPopupOpenMixer::handle_event() { + popup->unlock_window(); mwindow->gui->lock_window("AssetPopupOpenMixer::handle_event"); mwindow->create_mixers(); mwindow->gui->unlock_window(); + popup->lock_window("AssetPopupOpenMixer::handle_event"); return 1; } @@ -413,9 +413,11 @@ AssetPopupInsertMixer::~AssetPopupInsertMixer() int AssetPopupInsertMixer::handle_event() { + popup->unlock_window(); mwindow->gui->lock_window("AssetPopupInsertMixer::handle_event"); mwindow->create_mixers(-1); mwindow->gui->unlock_window(); + popup->lock_window("AssetPopupInsertMixer::handle_event"); return 1; }