summaryrefslogtreecommitdiff
path: root/core/preferences.vala
diff options
context:
space:
mode:
Diffstat (limited to 'core/preferences.vala')
-rw-r--r--core/preferences.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/preferences.vala b/core/preferences.vala
index 8834d2d9..faa65c98 100644
--- a/core/preferences.vala
+++ b/core/preferences.vala
@@ -166,6 +166,10 @@ namespace Midori {
}
}
proxy.search_changed.connect (() => {
+ if (! ("://" in settings.http_proxy)) {
+ proxy.get_style_context ().add_class ("error");
+ return;
+ }
string[] parts = settings.http_proxy.split ("://", 2);
if (parts[1] == "" || ":" in parts[1] || "/" in parts[1]) {
proxy.get_style_context ().add_class ("error");