From 21be6fb28921f3a7c943dabbb0c85adaabec8da9 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Wed, 15 Jun 2005 01:21:06 +0000 Subject: [PATCH] Bug 261199 UI for defining and editing virtual folders patch by gautheri@noos.fr r=mscott sr=mscott a=asa --- mail/base/content/widgetglue.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/mail/base/content/widgetglue.js b/mail/base/content/widgetglue.js index 2aaffdfbb8a..647c86562a4 100644 --- a/mail/base/content/widgetglue.js +++ b/mail/base/content/widgetglue.js @@ -231,8 +231,8 @@ function onEditVirtualFolderPropertiesCallback(aVirtualFolderURI) if (gMsgFolderSelected && aVirtualFolderURI == gMsgFolderSelected.URI) { gMsgFolderSelected = null; // force the folder pane to reload the virtual folder - FolderPaneSelectionChange(); -} + FolderPaneSelectionChange(); + } } function MsgFolderProperties() @@ -246,18 +246,17 @@ function MsgFolderProperties() return; } - var serverType = msgFolder.server.type; - var folderTree = GetFolderTree(); - if (msgFolder.flags & MSG_FOLDER_FLAG_VIRTUAL) { // virtual folders get there own property dialog that contains all of the // search information related to the virtual folder. - return MsgVirtualFolderProperties(true); + MsgVirtualFolderProperties(true); + return; } + var serverType = msgFolder.server.type; + var folderTree = GetFolderTree(); var name = GetFolderNameFromUri(preselectedURI, folderTree); - var windowTitle = gMessengerBundle.getString("folderProperties"); var dialog = window.openDialog( "chrome://messenger/content/folderProps.xul",