commit fae217919260ac3bfbb79e987f1ae46e7121e85e parent cf7f6e1bc6172b709ad558a71bd2f820b5c055bf Author: Alexandre Bique <bique.alexandre@gmail.com> Date: Fri, 10 Sep 2021 08:45:43 +0200 Merge pull request #16 from baconpaul/tiny-fixes Two tiny fixes Diffstat:
M | examples/host/plugin-host.cc | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/examples/host/plugin-host.cc b/examples/host/plugin-host.cc @@ -117,8 +117,9 @@ bool PluginHost::load(const QString &path, int pluginIndex) { } if (!clap_version_is_compatible(desc->clap_version)) { - qWarning() << "incompatible clap version: " << desc->clap_version.major << "." - << desc->clap_version.minor << "." << desc->clap_version.revision; + qWarning() << "Incompatible clap version: Plugin is: " << desc->clap_version.major << "." + << desc->clap_version.minor << "." << desc->clap_version.revision + << " Host is " << CLAP_VERSION.major << "." << CLAP_VERSION.minor << "." << CLAP_VERSION.revision; return false; } @@ -240,6 +241,9 @@ void PluginHost::setParentWindow(WId parentWindow) { _isGuiVisible = false; } + if (!_pluginGui) + return; + if (!_pluginGui->create(_plugin)) return;