mirror of
https://github.com/leozide/leocad
synced 2025-01-13 08:01:38 +01:00
Blender addon - save preference if valid key
This commit is contained in:
parent
da803dc315
commit
f89a9767d6
1 changed files with 4 additions and 4 deletions
|
@ -2619,7 +2619,7 @@ void lcBlenderPreferences::SaveSettings()
|
|||
Key = mBlenderPaths[LblIdx].key;
|
||||
Value = QDir::toNativeSeparators(mBlenderPaths[LblIdx].value);
|
||||
|
||||
if (Settings.contains(Key))
|
||||
if (!Key.isEmpty())
|
||||
Settings.setValue(Key, QVariant(Value));
|
||||
}
|
||||
|
||||
|
@ -2643,7 +2643,7 @@ void lcBlenderPreferences::SaveSettings()
|
|||
|
||||
Key = mBlenderSettings[LblIdx].key;
|
||||
|
||||
if (Settings.contains(Key))
|
||||
if (!Key.isEmpty())
|
||||
Settings.setValue(Key, QVariant(Value));
|
||||
}
|
||||
|
||||
|
@ -2662,7 +2662,7 @@ void lcBlenderPreferences::SaveSettings()
|
|||
Key = mBlenderPaths[LblIdx].key_mm;
|
||||
Value = QDir::toNativeSeparators(mBlenderPaths[LblIdx].value);
|
||||
|
||||
if (Settings.contains(Key))
|
||||
if (!Key.isEmpty())
|
||||
Settings.setValue(Key, QVariant(Value));
|
||||
}
|
||||
|
||||
|
@ -2683,7 +2683,7 @@ void lcBlenderPreferences::SaveSettings()
|
|||
|
||||
Key = mBlenderSettingsMM[LblIdx].key;
|
||||
|
||||
if (Settings.contains(Key))
|
||||
if (!Key.isEmpty())
|
||||
Settings.setValue(Key, QVariant(Value));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue