mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
QML UI: prevent crash when trying to set message without window
If we try to set up a message before the window has been instantiated we should ignore the message, not crash. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
75e736a66b
commit
975ca2e56a
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
|||
|
||||
static void showMessage(const char *errorString)
|
||||
{
|
||||
if (!qqWindowObject->setProperty("messageText", QVariant(errorString)))
|
||||
if (qqWindowObject && !qqWindowObject->setProperty("messageText", QVariant(errorString)))
|
||||
qDebug() << "couldn't set property messageText to" << errorString;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue