diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-11-07 09:53:17 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-06 09:25:31 -0800 |
commit | 00c14055353c5936517942a72fa36f1eda7ede79 (patch) | |
tree | 3b98812352407d115466dd524e3ad052ac59a69e | |
parent | 8a43e074082b390b643f0429fe04528b22bd5e5f (diff) | |
download | subsurface-00c14055353c5936517942a72fa36f1eda7ede79.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-- | windowtitleupdate.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/windowtitleupdate.cpp b/windowtitleupdate.cpp index eec324c68..963455f1d 100644 --- a/windowtitleupdate.cpp +++ b/windowtitleupdate.cpp @@ -27,5 +27,6 @@ void WindowTitleUpdate::emitSignal() extern "C" void updateWindowTitle() { WindowTitleUpdate *wt = WindowTitleUpdate::instance(); - wt->emitSignal(); + if (wt) + wt->emitSignal(); } |