`QskSkinManager::addPluginPath` tautology bug (#505)
Call `pluginPaths.contains( pluginPath )` is always true hence `addPluginPath` does not add a path. Probably m_data->pluginPaths was ment to be used.
This commit is contained in:
parent
a6f637ac5e
commit
59d2a484b7
|
@ -412,7 +412,8 @@ void QskSkinManager::addPluginPath( const QString& path )
|
||||||
{
|
{
|
||||||
const auto pluginPath = qskResolvedPath( path );
|
const auto pluginPath = qskResolvedPath( path );
|
||||||
|
|
||||||
if ( !pluginPath.isEmpty() && !pluginPath.contains( pluginPath ) )
|
// Avoid adding pluginPath that is empty or is already contained in the paths.
|
||||||
|
if ( !pluginPath.isEmpty() && !m_data->pluginPaths.contains( pluginPath ) )
|
||||||
{
|
{
|
||||||
m_data->pluginPaths += pluginPath;
|
m_data->pluginPaths += pluginPath;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue