[libcalamaresui] Warn when asking for nonexistent Branding instance
This commit is contained in:
parent
f1a47a9f0a
commit
38c65e80f3
@ -49,6 +49,10 @@ Branding* Branding::s_instance = nullptr;
|
||||
Branding*
|
||||
Branding::instance()
|
||||
{
|
||||
if ( !s_instance )
|
||||
{
|
||||
cWarning() << "No Branding instance created yet.";
|
||||
}
|
||||
return s_instance;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user