From 5e711875f50d7cea1e1ef56e5635e9c46b77286c Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 22 Dec 2009 00:49:34 +0100 Subject: [PATCH] VeSTige: set VeSTige logo as window icon for plugin GUI subwindow Up to now the MainWindow's icon was used for VST plugin GUI subwindows. Improve this a little bit by using the VeSTige logo now. --- plugins/vestige/vestige.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/vestige/vestige.cpp b/plugins/vestige/vestige.cpp index 3b6fb056b..7970dedb7 100644 --- a/plugins/vestige/vestige.cpp +++ b/plugins/vestige/vestige.cpp @@ -360,6 +360,11 @@ void VestigeInstrumentView::openPlugin() engine::getMixer()->lock(); m_vi->loadFile( ofd.selectedFiles()[0] ); engine::getMixer()->unlock(); + if( m_vi->m_plugin && m_vi->m_plugin->pluginWidget() ) + { + m_vi->m_plugin->pluginWidget()->setWindowIcon( + PLUGIN_NAME::getIconPixmap( "logo" ) ); + } } }