mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-24 20:34:59 +00:00
Fix settings objects, instances can be started from the GUI now
This commit is contained in:
@@ -26,9 +26,16 @@ QVariant Setting::get() const
|
||||
{
|
||||
SettingsObject *sbase = qobject_cast<SettingsObject *>(parent());
|
||||
if (!sbase)
|
||||
{
|
||||
return defValue();
|
||||
}
|
||||
else
|
||||
return sbase->retrieveValue(*this);
|
||||
{
|
||||
QVariant test = sbase->retrieveValue(*this);
|
||||
if(!test.isValid())
|
||||
return defValue();
|
||||
return test;
|
||||
}
|
||||
}
|
||||
|
||||
QVariant Setting::defValue() const
|
||||
|
||||
Reference in New Issue
Block a user