summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-28 15:56:09 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-03-28 15:56:09 +0000
commitf23b08c38364009eed695305eaf38caa115dc817 (patch)
tree83e4808ee9e18150f191be535e2b3ba1baa025c2
parent4f71ae2f997423339519fa9b9e693cfa6a6a4e9f (diff)
downloaddraksnapshot-f23b08c38364009eed695305eaf38caa115dc817.tar
draksnapshot-f23b08c38364009eed695305eaf38caa115dc817.tar.gz
draksnapshot-f23b08c38364009eed695305eaf38caa115dc817.tar.bz2
draksnapshot-f23b08c38364009eed695305eaf38caa115dc817.tar.xz
draksnapshot-f23b08c38364009eed695305eaf38caa115dc817.zip
do not alter status if a non block device is plugged
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@241090 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rwxr-xr-xdraksnapshot-applet4
1 files changed, 3 insertions, 1 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index bc48a26..27b5dc1 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -89,7 +89,9 @@ $con->add_filter(sub {
my $device = $hal->get_object(($msg->get_args_list)[0], "$hal_dn.Device");
$bool = $device->QueryCapability('block') && $device->GetProperty('block.is_volume');
};
- go2State($bool ? 'disk_found' : 'okay');
+ if ($bool) {
+ go2State('disk_found');
+ }
0;
});
$con->add_match("type='signal',interface='$hal_manager'");