From 878c05afede17fb245897617981a8b6975678e5b Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 7 Nov 2015 09:53:17 -0800 Subject: 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 --- subsurface-core/windowtitleupdate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsurface-core/windowtitleupdate.cpp b/subsurface-core/windowtitleupdate.cpp index eec324c68..963455f1d 100644 --- a/subsurface-core/windowtitleupdate.cpp +++ b/subsurface-core/windowtitleupdate.cpp @@ -27,5 +27,6 @@ void WindowTitleUpdate::emitSignal() extern "C" void updateWindowTitle() { WindowTitleUpdate *wt = WindowTitleUpdate::instance(); - wt->emitSignal(); + if (wt) + wt->emitSignal(); } -- cgit v1.2.3-70-g09d2