mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 09:59:59 +03:00
Fix settings objects, instances can be started from the GUI now
This commit is contained in:
parent
e4f86893a8
commit
40570c3210
8 changed files with 56 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue