Skip to content

Commit d8dc04f

Browse files
committed
Fix #4444. Patch by Vaclav Petras
1 parent e573ce9 commit d8dc04f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/python/qgspythonutilsimpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ QStringList QgsPythonUtilsImpl::pluginList()
462462

463463
QString output;
464464
evalString( "'\\n'.join(qgis.utils.available_plugins)", output );
465-
return output.split( QChar( '\n' ) );
465+
return output.split( QChar( '\n' ), QString::SkipEmptyParts );
466466
}
467467

468468
QString QgsPythonUtilsImpl::getPluginMetadata( QString pluginName, QString function )
@@ -513,5 +513,5 @@ QStringList QgsPythonUtilsImpl::listActivePlugins()
513513
{
514514
QString output;
515515
evalString( "'\\n'.join(qgis.utils.active_plugins)", output );
516-
return output.split( QChar( '\n' ) );
516+
return output.split( QChar( '\n' ), QString::SkipEmptyParts );
517517
}

0 commit comments

Comments
 (0)