Browse Source

Don't send label when it is NULL. Ha, we nearly did the same mistake like we fixed earlier

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

+ 2
- 1
src/nsmd.cpp View File

@@ -2289,7 +2289,8 @@ announce_gui( const char *url, bool is_reply )
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 );
osc_server->send( gui_addr, "/nsm/gui/client/label", c->client_id, c->label() );
if ( c->label() ) // could be NULL
osc_server->send( gui_addr, "/nsm/gui/client/label", c->client_id, c->label() );

}



Loading…
Cancel
Save