diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-03-19 23:01:14 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-03-19 23:01:14 +0100 |
commit | 0f6d016183c63aa591d91f6973d550b7faa9f600 (patch) | |
tree | 95d830c0f53d142a084bccdc7571d2629b1707c8 | |
parent | 5c71a775edc75cc3af963ed09002f1027fcac2ff (diff) | |
download | bugzilla-triage-0f6d016183c63aa591d91f6973d550b7faa9f600.tar.gz |
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
-rw-r--r-- | lib/libbugzilla.js | 2 |
1 files changed, 1 insertions, 1 deletions
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!"); |