[fix] show no device message when all devices are removed

This commit is contained in:
Julian Sparber
2017-10-28 19:24:40 +02:00
parent 6b7d5c2acc
commit 60c968fb10
5 changed files with 20 additions and 1 deletions

View File

@@ -112,7 +112,8 @@ void teleport_peer_remove_peer (TeleportPeer *self, Peer *device)
g_signal_emit (self, signalIds[REMOVE], 0, device);
}
void teleport_peer_remove_peer_by_name (TeleportPeer *self, const gchar *name)
void
teleport_peer_remove_peer_by_name (TeleportPeer *self, const gchar *name)
{
Peer *element = NULL;
gboolean found = FALSE;
@@ -142,3 +143,8 @@ teleport_peer_get_name_by_addr (TeleportPeer *self, const gchar *addr)
}
return name;
}
int
teleport_peer_get_number (TeleportPeer *self)
{
return (self->list->len);
}