mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
61e36124e4
commit
878c05afed
1 changed files with 2 additions and 1 deletions
|
@ -27,5 +27,6 @@ void WindowTitleUpdate::emitSignal()
|
|||
extern "C" void updateWindowTitle()
|
||||
{
|
||||
WindowTitleUpdate *wt = WindowTitleUpdate::instance();
|
||||
wt->emitSignal();
|
||||
if (wt)
|
||||
wt->emitSignal();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue