From 1c289b0726dcdc35bf9b09cce51d0dfe64272bb5 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 1 Sep 2014 14:00:32 +0200 Subject: [PATCH] Plugin: use QFileInfo::baseName() --- src/core/Plugin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/Plugin.cpp b/src/core/Plugin.cpp index 8a81e2c99..5bce7df9e 100644 --- a/src/core/Plugin.cpp +++ b/src/core/Plugin.cpp @@ -156,8 +156,7 @@ void Plugin::getDescriptorsOfAvailPlugins( DescriptorList & _plugin_descs ) { continue; } - QString desc_name = f.fileName().section( '.', 0, 0 ) + - "_plugin_descriptor"; + QString desc_name = f.baseName() + "_plugin_descriptor"; if( desc_name.left( 3 ) == "lib" ) { desc_name = desc_name.mid( 3 );