Partitions: use KPMCore-defined default backend

This commit is contained in:
Adriaan de Groot 2017-07-11 15:02:29 -04:00 committed by Philip
parent 0cfca31cac
commit 42d5e6d1c4

View File

@ -43,10 +43,7 @@ initKPMcore()
return true;
QByteArray backendName = qgetenv( "KPMCORE_BACKEND" );
if ( backendName.isEmpty() )
backendName = "pmlibpartedbackendplugin";
if ( !CoreBackendManager::self()->load( backendName ) )
if ( !CoreBackendManager::self()->load( backendName.isEmpty() ? CoreBackendManager::defaultBackendName() : backendName ) )
{
qWarning() << "Failed to load backend plugin" << backendName;
return false;