summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-03-23 09:35:50 +0000
committerThierry Vignaud <tv@mandriva.org>2009-03-23 09:35:50 +0000
commit507903e29c933401eb2fa3f8f784f2e22a92504a (patch)
tree9241a86417676047e9d7be0e5be29bc188459170
parent024607558fe97b22b493b7916319e5f123cc4333 (diff)
downloadcontrol-center-507903e29c933401eb2fa3f8f784f2e22a92504a.tar
control-center-507903e29c933401eb2fa3f8f784f2e22a92504a.tar.gz
control-center-507903e29c933401eb2fa3f8f784f2e22a92504a.tar.bz2
control-center-507903e29c933401eb2fa3f8f784f2e22a92504a.tar.xz
control-center-507903e29c933401eb2fa3f8f784f2e22a92504a.zip
(definition of @tree) fix IDs of DVD/CDs thus fixing crashing on
invalidly escaped characters (#49034) (regression introduced in r254139 on 2009-03-17: "(navigation-requested callback) simplify using Glib")
-rw-r--r--NEWS3
-rwxr-xr-xcontrol-center3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 184ea0e9..1b1e9058 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- drakconf:
+ o fix IDs of DVD/CDs thus fixing crashing on invalidly escaped
+ characters (#49034)
- drakxconf:
o do use translations when using the text mode version (#48988)
diff --git a/control-center b/control-center
index b4ad3b68..9e8e1f8d 100755
--- a/control-center
+++ b/control-center
@@ -467,12 +467,13 @@ my @tree = (
(map {
my ($type, $scan, $text, $long_text) = @$_;
map_index {
+ $text = sprintf(translate($text), $_->{info});
my $full_name = $text . ($::i ? $::i + 1 : '');
$programs{$full_name} =
{
binary => "$sbindir/diskdrake --removable=$_->{device}",
embedded => 1,
- description => sprintf(translate($text), $_->{info}),
+ description => $text,
long_description => sprintf(translate($long_text), $_->{info}),
icon => "diskdrake_$type",
};