|
|
|
@ -990,14 +990,8 @@ BrowserGlue.prototype = { |
|
|
|
|
// An import operation is about to run.
|
|
|
|
|
// Don't try to recreate smart bookmarks if autoExportHTML is true or
|
|
|
|
|
// smart bookmarks are disabled.
|
|
|
|
|
var autoExportHTML = false; |
|
|
|
|
try { |
|
|
|
|
autoExportHTML = Services.prefs.getBoolPref("browser.bookmarks.autoExportHTML"); |
|
|
|
|
} catch(ex) {} |
|
|
|
|
var smartBookmarksVersion = 0; |
|
|
|
|
try { |
|
|
|
|
smartBookmarksVersion = Services.prefs.getIntPref("browser.places.smartBookmarksVersion"); |
|
|
|
|
} catch(ex) {} |
|
|
|
|
var autoExportHTML = Services.prefs.getBoolPref("browser.bookmarks.autoExportHTML", false); |
|
|
|
|
var smartBookmarksVersion = Services.prefs.getIntPref("browser.places.smartBookmarksVersion", 0); |
|
|
|
|
if (!autoExportHTML && smartBookmarksVersion != -1) |
|
|
|
|
Services.prefs.setIntPref("browser.places.smartBookmarksVersion", 0); |
|
|
|
|
|
|
|
|
@ -1556,10 +1550,7 @@ BrowserGlue.prototype = { |
|
|
|
|
const MAX_RESULTS = 10; |
|
|
|
|
|
|
|
|
|
// Get current smart bookmarks version. If not set, create them.
|
|
|
|
|
let smartBookmarksCurrentVersion = 0; |
|
|
|
|
try { |
|
|
|
|
smartBookmarksCurrentVersion = Services.prefs.getIntPref(SMART_BOOKMARKS_PREF); |
|
|
|
|
} catch(ex) {} |
|
|
|
|
let smartBookmarksCurrentVersion = Services.prefs.getIntPref(SMART_BOOKMARKS_PREF, 0); |
|
|
|
|
|
|
|
|
|
// If version is current or smart bookmarks are disabled, just bail out.
|
|
|
|
|
if (smartBookmarksCurrentVersion == -1 || |
|
|
|
|