diff --git a/mailnews/base/resources/content/virtualFolderProperties.js b/mailnews/base/resources/content/virtualFolderProperties.js index bac549ffc80..5c7d787d605 100644 --- a/mailnews/base/resources/content/virtualFolderProperties.js +++ b/mailnews/base/resources/content/virtualFolderProperties.js @@ -243,11 +243,9 @@ function chooseFoldersToSearch() // for those folders. Otherwise fall back to the preselectedfolderURI which is the parent folder // for this new virtual folder. var srchFolderUriArray = gSearchFolderURIs.split('|'); - var folder = GetMsgFolderFromUri(srchFolderUriArray[0] ? srchFolderUriArray[0] : window.arguments[0].preselectedURI, false); var dialog = window.openDialog("chrome://messenger/content/virtualFolderListDialog.xul", "", "chrome,titlebar,modal,centerscreen,resizable", - {serverURI:folder.rootFolder.URI, - searchFolderURIs:gSearchFolderURIs, + {searchFolderURIs:gSearchFolderURIs, okCallback:onFolderListDialogCallback}); }