summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-09-25 14:00:36 +0000
committerThierry Vignaud <tv@mandriva.org>2008-09-25 14:00:36 +0000
commit4db9b9bf3c767eade017e1b6f99f8095797636b5 (patch)
tree0a8bbcecac2f5be8c9c99be9f8de1a9a77c544f4
parentdbc2ed65405faabddbec01e8f98354f873a98323 (diff)
downloadcontrol-center-4db9b9bf3c767eade017e1b6f99f8095797636b5.tar
control-center-4db9b9bf3c767eade017e1b6f99f8095797636b5.tar.gz
control-center-4db9b9bf3c767eade017e1b6f99f8095797636b5.tar.bz2
control-center-4db9b9bf3c767eade017e1b6f99f8095797636b5.tar.xz
control-center-4db9b9bf3c767eade017e1b6f99f8095797636b5.zip
do not crash when selecting "Reload" in contextual menu (#44226)
-rw-r--r--NEWS1
-rwxr-xr-xcontrol-center4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9a9179d7..be78d97a 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- do not crash when selecting "Reload" in contextual menu (#44226)
- make icon+text act as a single item for links
- make sure --save-html-pages write UTF-8 files
- use gray gradient in right background
diff --git a/control-center b/control-center
index 4f618ffa..ca1dc3ce 100755
--- a/control-center
+++ b/control-center
@@ -928,6 +928,10 @@ $view->signal_connect('navigation-requested' =>
$url =~ s!file:///!!;
$url =~ s!%20! !g;
+ if (!$tool_callbacks{$url}) {
+ warn "Warning: invalid tool name: $url\n";
+ return;
+ }
$tool_callbacks{$url}->();
# FIXME: the following code is currently useless:
# should we provide a way to kill buggy embedded programs ?