# HG changeset patch # User Chris Cannam # Date 1383585051 0 # Node ID 5e5ab4e8d64bf25a784bd22be3166bf8c2f79aad # Parent d3cbfb11b70acd1131cd6a5f9c0e379cc8b88328 Fix from Jesus Corral Garcia (panel with gain only appears when IM AF loaded) diff -r d3cbfb11b70a -r 5e5ab4e8d64b widgets/PropertyBox.cpp --- a/widgets/PropertyBox.cpp Mon Nov 04 17:10:38 2013 +0000 +++ b/widgets/PropertyBox.cpp Mon Nov 04 17:10:51 2013 +0000 @@ -56,6 +56,7 @@ QHBoxLayout *layout1 = new QHBoxLayout; int tracks=0; + extern bool isIMAF; //#include "C:/Users/Paco/Desktop/SV mio/sonic-visualiser/main/imafdecoder.h" PropertyBox::PropertyBox(PropertyContainer *container) : m_container(container), @@ -231,6 +232,7 @@ //code added by Jesus +if (isIMAF){ QString property_container_name; // the name could be : Waveform, Time Instants, etc property_container_name = layer->getPropertyContainerName();// obtain the name bool isWaveform; @@ -278,7 +280,8 @@ window->setLayout(layout1); window ->showNormal(); } -} // end if +} // end if isWaveform +} // end if isIMAF // end code added by Jesus AudioDial *panDial = new AudioDial;