summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-12-01 11:02:18 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-12-01 11:02:18 +0000
commite6cc6f62220b078351da4da0b3ff9b43b2738101 (patch)
tree675fd599de4cc66df5558055f98698fff5eae785
parentc1460ea8586aa197c14b39ea21dca336f5bc46e7 (diff)
downloaddrakx-e6cc6f62220b078351da4da0b3ff9b43b2738101.tar
drakx-e6cc6f62220b078351da4da0b3ff9b43b2738101.tar.gz
drakx-e6cc6f62220b078351da4da0b3ff9b43b2738101.tar.bz2
drakx-e6cc6f62220b078351da4da0b3ff9b43b2738101.tar.xz
drakx-e6cc6f62220b078351da4da0b3ff9b43b2738101.zip
nicer dialog box
-rwxr-xr-xmove/tree/mdk_totem11
1 files changed, 4 insertions, 7 deletions
diff --git a/move/tree/mdk_totem b/move/tree/mdk_totem
index cfd4d989c..9bb795d97 100755
--- a/move/tree/mdk_totem
+++ b/move/tree/mdk_totem
@@ -79,19 +79,16 @@ if (@busy) {
my $choice = 'quit';
my @l = my %l = (
kill => N("Kill those programs"),
- keep => N("Run with no CDROM support"),
- quit => N("Quit"),
+ keep => N("No CDROM support"),
);
- $in->ask_from_({ ok => undef,
+ $in->ask_from_({
title => N("Busy files"),
messages => N("You can't use another CDROM when the following programs are running:
%s", join(", ", uniq(sort @progs))) },
- [ { type => 'list', val => \$choice, list => first(list2kv(@l)), format => sub { $l{$_[0]} } } ]);
+ [ { type => 'list', val => \$choice, list => first(list2kv(@l)), format => sub { $l{$_[0]} } } ]) or $in->exit;
- if ($choice eq 'quit') {
- $in->exit;
- } elsif ($choice eq 'keep') {
+ if ($choice eq 'keep') {
exec 'totem' or $in->exit;
} else {
kill 15, map { $_->{pid} } @busy;