From 40e6d26dbb1355caa8504f48c27246da2e972c80 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 29 Jun 2009 14:21:29 +0200 Subject: [PATCH] Handle plugin-specific resources in TrackContainerView/ResourcePreviewer Up to now plugin-specific resources (e.g. ZynAddSubFX presets) were not previewed or loaded into a track container. This now works by adding TypePluginSpecificResource to the according switch-block. Signed-off-by: Tobias Doerffel --- src/core/ResourcePreviewer.cpp | 1 + src/gui/track_container_view.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/ResourcePreviewer.cpp b/src/core/ResourcePreviewer.cpp index a2f9db4e9..d6afec68c 100644 --- a/src/core/ResourcePreviewer.cpp +++ b/src/core/ResourcePreviewer.cpp @@ -94,6 +94,7 @@ void ResourcePreviewer::preview( ResourceItem * _item ) break; case ResourceItem::TypeSample: case ResourceItem::TypeSoundFont: + case ResourceItem::TypePluginSpecificResource: { // restore default settings we are going to preview a // sample (which should be played at a default diff --git a/src/gui/track_container_view.cpp b/src/gui/track_container_view.cpp index 0aa686f36..e9560d1d2 100644 --- a/src/gui/track_container_view.cpp +++ b/src/gui/track_container_view.cpp @@ -420,6 +420,7 @@ void trackContainerView::dropEvent( QDropEvent * _de ) break; case ResourceItem::TypeSample: case ResourceItem::TypeSoundFont: + case ResourceItem::TypePluginSpecificResource: action.loadByPlugin( dynamic_cast( track::create( track::InstrumentTrack,