From a63db013c53a49a6654a55a99f83a36d81b74d27 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 3 Mar 2009 18:17:12 +0000 Subject: fix crash in net_applet when mandi is started (happens if mandi was not available at net_applet start), this requires some API change to split init code, so that we do not add the dbus filters every time we try to reconnect the network::ifw object --- bin/drakids | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/drakids') diff --git a/bin/drakids b/bin/drakids index dcaa1b2..4a223a9 100644 --- a/bin/drakids +++ b/bin/drakids @@ -45,7 +45,8 @@ my $w = ugtk2->new($title); my $ifw; eval { - $ifw = network::ifw->new(dbus_object::system_bus(), sub { + my $bus = dbus_object::system_bus(); + network::ifw::init($bus, sub { my ($_con, $msg) = @_; my $member = $msg->get_member; if ($member eq 'Attack') { @@ -62,6 +63,7 @@ eval { $w->{window}->present; } }); + $ifw = network::ifw->new($bus); }; if ($@) { -- cgit v1.2.1