avoid update event cycle when setting custom profile

This commit is contained in:
Norbert Renner 2015-03-25 12:24:31 +01:00
parent 5a10a3a8f7
commit d79de3966a

View file

@ -149,7 +149,10 @@
var profileId = routingOptions.getCustomProfile();
router.uploadProfile(profileId, evt.profileText, function(err, profile) {
if (!err) {
routingOptions.setCustomProfile(profile);
routingOptions.setCustomProfile(profile, true);
updateRoute({
options: routingOptions.getOptions()
});
if (!saveWarningShown) {
BR.message.showWarning('Note: Uploaded custom profiles are only cached temporarily on the server.'
+ '<br/>Please save your edits to your local PC.');