diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-09-25 14:00:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-09-25 14:00:36 +0000 |
commit | 4db9b9bf3c767eade017e1b6f99f8095797636b5 (patch) | |
tree | 0a8bbcecac2f5be8c9c99be9f8de1a9a77c544f4 | |
parent | dbc2ed65405faabddbec01e8f98354f873a98323 (diff) | |
download | control-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-- | NEWS | 1 | ||||
-rwxr-xr-x | control-center | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -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 ? |