From 52e82db674afd943631203d9b6947bbaba8eedb9 Mon Sep 17 00:00:00 2001 From: Danny McRae Date: Wed, 16 Aug 2006 15:24:54 +0000 Subject: [PATCH] don't show control edit button if there aren't any controls git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@341 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 4 +++- src/widgets/rack_plugin.cpp | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2852dc44e..a5cfe61d9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,9 @@ * include/ladspa_control_dialog.h: * src/core/ladspa_control_dialog.cpp: * src/widgets/ladspa_control.cpp: - added channel link selectors for individual ports + * src/widgets/rack_plugin.cpp: + - added channel link selectors for individual ports + - don't show control edit button for plugins with no controls 2006-08-16 Erwin Goossen diff --git a/src/widgets/rack_plugin.cpp b/src/widgets/rack_plugin.cpp index 8f3269e61..54d4f86bb 100644 --- a/src/widgets/rack_plugin.cpp +++ b/src/widgets/rack_plugin.cpp @@ -197,6 +197,11 @@ rackPlugin::rackPlugin( QWidget * _parent, this, SLOT( closeEffects() ) ); m_controlView->hide(); + if( m_controlView->getControlCount() == 0 ) + { + m_editButton->hide(); + } + #ifdef QT4 this->setWhatsThis( #else