зеркало из https://github.com/mozilla/gecko-dev.git
Bug #265481 --> port aviary branch fix for Thunderbird not reloading virtual folder after dismissing the properties dialog.
sr=bienvenu
This commit is contained in:
Родитель
98e05b892d
Коммит
e61cb650bf
|
@ -208,11 +208,15 @@ function MsgVirtualFolderProperties(aEditExistingVFolder)
|
|||
msgWindow:msgWindow});
|
||||
}
|
||||
|
||||
function onEditVirtualFolderPropertiesCallback(aVirtualFolder)
|
||||
function onEditVirtualFolderPropertiesCallback(aVirtualFolderURI)
|
||||
{
|
||||
// we need to reload the folder if it is the currently loaded folder...
|
||||
if (gMsgFolderSelected && aVirtualFolderURI == gMsgFolderSelected.URI)
|
||||
{
|
||||
gMsgFolderSelected = null; // force the folder pane to reload the virtual folder
|
||||
FolderPaneSelectionChange();
|
||||
}
|
||||
}
|
||||
|
||||
function MsgFolderProperties()
|
||||
{
|
||||
|
|
|
@ -194,7 +194,7 @@ function onOK()
|
|||
accountManager.saveVirtualFolders();
|
||||
|
||||
if (window.arguments[0].onOKCallback)
|
||||
window.arguments[0].onOKCallback(msgFolder);
|
||||
window.arguments[0].onOKCallback(msgFolder.URI);
|
||||
|
||||
}
|
||||
else if (name && uri) // create a new virtual folder
|
||||
|
|
|
@ -226,10 +226,14 @@ function MsgVirtualFolderProperties(aEditExistingVFolder)
|
|||
msgWindow:msgWindow});
|
||||
}
|
||||
|
||||
function onEditVirtualFolderPropertiesCallback(aVirtualFolder)
|
||||
function onEditVirtualFolderPropertiesCallback(aVirtualFolderURI)
|
||||
{
|
||||
// we need to reload the folder if it is the currently loaded folder...
|
||||
FolderPaneSelectionChange();
|
||||
if (gMsgFolderSelected && aVirtualFolderURI == gMsgFolderSelected.URI)
|
||||
{
|
||||
gMsgFolderSelected = null; // force the folder pane to reload the virtual folder
|
||||
FolderPaneSelectionChange();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче