Partitions: use KPMCore-defined default backend
This commit is contained in:
parent
0cfca31cac
commit
42d5e6d1c4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user