From 5ce914a672104c00f0c13d3d8508cfb551d7add9 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 21 Sep 2008 23:44:18 +0000 Subject: [PATCH] always return a dummy model in plugin::getChildModel() for not crashing if something goes wrong git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1677 0778d3d1-df1d-0410-868b-ea421aaaa00d --- src/core/plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/plugin.cpp b/src/core/plugin.cpp index 33a77ff6a..67d5e59a2 100644 --- a/src/core/plugin.cpp +++ b/src/core/plugin.cpp @@ -36,6 +36,7 @@ #include "mixer.h" #include "config_mgr.h" #include "dummy_plugin.h" +#include "automatable_model.h" static pixmapLoader __dummy_loader; @@ -85,7 +86,8 @@ void plugin::loadFile( const QString & ) automatableModel * plugin::getChildModel( const QString & ) { - return NULL; + static floatModel fm; + return &fm; }