DBus: don't try to connect in GrabDefaultName() if DBus disabled
commit9179c7a95c13edb766466b7b31e856147ea07e96
authorAndrés G. Aragoneses <knocte@gmail.com>
Sun, 23 Feb 2014 11:36:00 +0000 (23 12:36 +0100)
committerAndrés G. Aragoneses <knocte@gmail.com>
Sun, 23 Feb 2014 11:36:00 +0000 (23 12:36 +0100)
treedb2c1c999c1dd2b45b0fdf96d4ba6d932b0c7360
parentc033b982440477b4f32e78729441b1725801cf07
DBus: don't try to connect in GrabDefaultName() if DBus disabled

If DBus was not enabled, we were properly returning true (as in
primary_instance == true) but we were trying to connect when
we should not.

Also, by changing primary_instance to be initialized to true,
instead of false, at first, then we need to change its value in
less places.
src/Core/Banshee.Services/Banshee.ServiceStack/DBusConnection.cs