[libcalamaresui] Warn when asking for nonexistent Branding instance

This commit is contained in:
Adriaan de Groot 2021-08-24 11:57:37 +02:00
parent f1a47a9f0a
commit 38c65e80f3

View File

@ -49,6 +49,10 @@ Branding* Branding::s_instance = nullptr;
Branding*
Branding::instance()
{
if ( !s_instance )
{
cWarning() << "No Branding instance created yet.";
}
return s_instance;
}