diff --git a/src/core/plugin.cpp b/src/core/plugin.cpp index 07605ba55..cfee1134f 100644 --- a/src/core/plugin.cpp +++ b/src/core/plugin.cpp @@ -38,6 +38,8 @@ #include "dummy_plugin.h" +static pixmapLoader __dummy_loader; + static plugin::descriptor dummy_plugin_descriptor = { "dummy", @@ -46,22 +48,18 @@ static plugin::descriptor dummy_plugin_descriptor = "Tobias Doerffel ", 0x0100, plugin::Undefined, - NULL, + &__dummy_loader, NULL } ; + plugin::plugin( const descriptor * _descriptor, model * _parent ) : journallingObject(), model( _parent ), m_descriptor( _descriptor ) { - if( dummy_plugin_descriptor.logo == NULL ) - { - dummy_plugin_descriptor.logo = new pixmapLoader; - } - if( m_descriptor == NULL ) { m_descriptor = &dummy_plugin_descriptor;