Browse Source

Check status for null as well, just to be super strict

tags/v1.4.0
Nils 4 years ago
parent
commit
f3b7daf557
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/nsmd.cpp

+ 2
- 1
src/nsmd.cpp View File

@@ -2286,7 +2286,8 @@ announce_gui( const char *url, bool is_reply )
Client *c = *i;

osc_server->send( gui_addr, "/nsm/gui/client/new", c->client_id, c->name );
osc_server->send( gui_addr, "/nsm/gui/client/status", c->client_id, c->status );
if ( c->status )
osc_server->send( gui_addr, "/nsm/gui/client/status", c->client_id, c->status );
if ( c->is_capable_of( ":optional-gui:" ) )
osc_server->send( gui_addr, "/nsm/gui/client/has_optional_gui", c->client_id );
if ( c->label() ) // could be NULL


Loading…
Cancel
Save