diff --git a/application/views/scripts/dashboard/settings.phtml b/application/views/scripts/dashboard/settings.phtml
index ebe0188c4..b14c236df 100644
--- a/application/views/scripts/dashboard/settings.phtml
+++ b/application/views/scripts/dashboard/settings.phtml
@@ -25,7 +25,7 @@
- = $this->icon('remove.png'); ?>
+ = $this->icon('cancel'); ?>
|
@@ -49,7 +49,7 @@
- = $this->icon('remove.png'); ?>
+ = $this->icon('cancel'); ?>
|
diff --git a/library/Icinga/Web/Widget/Dashboard/Pane.php b/library/Icinga/Web/Widget/Dashboard/Pane.php
index 4773d69b7..4ba9f27dc 100644
--- a/library/Icinga/Web/Widget/Dashboard/Pane.php
+++ b/library/Icinga/Web/Widget/Dashboard/Pane.php
@@ -141,9 +141,11 @@ class Pane extends UserWidget
if ($component->isUserWidget() === true) {
unset($this->components[$title]);
} else {
- $component->setUserWidget();
$component->setDisabled(true);
+ $component->setUserWidget();
}
+ } else {
+ throw new ProgrammingError('Component does not exist: ' . $title);
}
return $this;
}