Don't crash if we have no WindowTitleUpdater registered

Subsurface-mobile doesn't have a window title with the name of our file
name at this point, so simply don't try to trigger the update.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-07 09:53:17 -08:00
parent 61e36124e4
commit 878c05afed

View file

@ -27,5 +27,6 @@ void WindowTitleUpdate::emitSignal()
extern "C" void updateWindowTitle()
{
WindowTitleUpdate *wt = WindowTitleUpdate::instance();
wt->emitSignal();
if (wt)
wt->emitSignal();
}