summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-07 09:53:17 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-07 09:53:17 -0800
commit878c05afede17fb245897617981a8b6975678e5b (patch)
treec1daa4cb546d9f64ab53058c5fbce695793aa08c
parent61e36124e4060142bec206a99b50222b8a62d063 (diff)
downloadsubsurface-878c05afede17fb245897617981a8b6975678e5b.tar.gz
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>
-rw-r--r--subsurface-core/windowtitleupdate.cpp3
1 files changed, 2 insertions, 1 deletions
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();
}