Use defaultBackend from kpmcore.

Do not duplicate the same thing in partitionmanager.kcfg
This commit is contained in:
Andrius Štikonas 2018-01-31 18:50:33 +00:00
parent bacb2e645b
commit fa65cd116b
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,6 @@
</entry>
<entry key="backend" type="String">
<label context="@label">Backend plugin</label>
<default>pmlibpartedbackendplugin</default>
</entry>
<entry key="defaultFileSystem" type="Int">
<default>FileSystem::Ext4</default>

View File

@ -133,7 +133,8 @@ bool loadBackend()
{
if (CoreBackendManager::self()->load(Config::backend()) == false) {
if (CoreBackendManager::self()->load(CoreBackendManager::defaultBackendName())) {
KMessageBox::sorry(nullptr,
if (!Config::firstRun())
KMessageBox::sorry(nullptr,
xi18nc("@info", "<para>The configured backend plugin \"%1\" could not be loaded.</para>"
"<para>Loading the default backend plugin \"%2\" instead.</para>",
Config::backend(), CoreBackendManager::defaultBackendName()),