aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libbugzilla.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-03-19 23:01:14 +0100
committerMatěj Cepl <mcepl@redhat.com>2011-03-19 23:01:14 +0100
commit0f6d016183c63aa591d91f6973d550b7faa9f600 (patch)
tree95d830c0f53d142a084bccdc7571d2629b1707c8 /lib/libbugzilla.js
parent5c71a775edc75cc3af963ed09002f1027fcac2ff (diff)
downloadbugzilla-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
Diffstat (limited to 'lib/libbugzilla.js')
-rw-r--r--lib/libbugzilla.js2
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!");