flush the ds after adding a bookmark

This commit is contained in:
chanial%noos.fr 2002-10-14 02:14:40 +00:00
parent c16bd86d61
commit 475836bd57

View File

@ -129,6 +129,11 @@ function onOK()
target = BookmarksUtils.getSelectionFromResource(rFolder);
target = BookmarksUtils.getTargetFromSelection(target);
BookmarksUtils.insertSelection("newbookmark", selection, target);
// in insertSelection, the ds flush is delayed. It will never be performed,
// since this dialog is destroyed before.
// We have to flush manually
var remoteDS = BMDS.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource);
remoteDS.Flush();
}
function getNormalizedURL(url)