From c169a52b9b6245137acd736e7f87667beb5055b3 Mon Sep 17 00:00:00 2001 From: Artem Anufrij Date: Sun, 4 Feb 2018 19:11:58 +0100 Subject: [PATCH] regex --- src/Widgets/Views/Editor.vala | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Widgets/Views/Editor.vala b/src/Widgets/Views/Editor.vala index eb70060..db495cf 100644 --- a/src/Widgets/Views/Editor.vala +++ b/src/Widgets/Views/Editor.vala @@ -253,7 +253,7 @@ namespace Webpin.Widgets.Views { var icon_path = result; if (!result.has_prefix ("http")) { - result = Path.build_filename (url, result); + icon_path = Path.build_filename (url, result); } download_icon (icon_path); icon_name_entry.set_text (tmp_icon_file); @@ -267,14 +267,12 @@ namespace Webpin.Widgets.Views { var icon_path = result; if (!result.has_prefix ("http")) { - result = Path.build_filename (url, result); + icon_path = Path.build_filename (url, result); } download_icon (icon_path); icon_name_entry.set_text (tmp_icon_file); } } - - } msg.dispose (); session.dispose ();