From 0f6d016183c63aa591d91f6973d550b7faa9f600 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sat, 19 Mar 2011 23:01:14 +0100 Subject: Don't suggest restart of Firefox, when it is not required. Check that the value of the configuration URL has actually changed before suggesting Firefox needs to be restarted. Fixes #61 --- lib/libbugzilla.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libbugzilla.js b/lib/libbugzilla.js index 6d556a4..28e2be1 100644 --- a/lib/libbugzilla.js +++ b/lib/libbugzilla.js @@ -110,7 +110,7 @@ exports.changeJSONURL = function changeJSONURL() { var url = preferences.get(prfNm,""); var reply = prompts.prompt("New location of JSON configuration file", url); - if (reply) { + if (reply && (reply != url)) { preferences.set(prfNm, reply.trim()); // TODO Restartless add-on needs to resolve this. prompts.alert("For now, you should really restart Firefox!"); -- cgit