bug 410520: add a way to prevent the migration wizard from starting. r=philipp

git-svn-id: svn://10.0.0.236/trunk@242266 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mvl%exedo.nl 2008-01-02 20:49:07 +00:00
parent 2d977fe853
commit b56ccc63eb

View File

@ -111,10 +111,12 @@ function loadCalendarManager() {
// Wrapping this in a try/catch block, as if any of the migration code
// fails, the app may not load.
try {
gDataMigrator.checkAndMigrate();
} catch (e) {
Components.utils.reportError("Migrator error: " + e);
if (getPrefSafe("calendar.migrator.enabled", true)) {
try {
gDataMigrator.checkAndMigrate();
} catch (e) {
Components.utils.reportError("Migrator error: " + e);
}
}
calendars = [homeCalendar];