Mercurial > pidgin
diff libpurple/prpl.c @ 24301:785db7300ef2
Improve our NetworkManager support in a couple of ways:
* We no longer show error minidialogs when the network is not available.
* We no longer ask NetworkManager (over DBus) for the network state with
every call to purple_network_is_available(). We now cache the result.
* Be a little more robust when we're not sure of the connection status.
Fixes #7323
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Sun, 26 Oct 2008 00:29:27 +0000 |
| parents | 49850f7ca393 |
| children | bcad7dc4b453 8c2631eb5da7 a6e3cb32cdd2 |
line wrap: on
line diff
--- a/libpurple/prpl.c Sat Oct 25 19:03:42 2008 +0000 +++ b/libpurple/prpl.c Sun Oct 26 00:29:27 2008 +0000 @@ -23,6 +23,7 @@ #include "internal.h" #include "conversation.h" #include "debug.h" +#include "network.h" #include "notify.h" #include "prpl.h" #include "request.h" @@ -317,7 +318,8 @@ PurplePluginProtocolInfo *prpl_info; if (purple_status_is_online(new_status) && - purple_account_is_disconnected(account)) + purple_account_is_disconnected(account) && + purple_network_is_available()) { purple_account_connect(account); return;
