Bug 474000 - click+drag message in search messages results window doesn't pick up message
authorIan Neal <iann_cvs@blueyonder.co.uk>
Sat, 17 Jan 2009 17:09:40 +0000
changeset 1662 da4ab57196d6
parent 1661 079d27d702c7
child 1663 3d63461d9075
push id1328
push useriann_cvs@blueyonder.co.uk
push dateSat, 17 Jan 2009 17:10:09 +0000
treeherdercomm-central@da4ab57196d6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs474000
Bug 474000 - click+drag message in search messages results window doesn't pick up message p=me r=bienvenu sr=neil
mail/base/content/msgMail3PaneWindow.js
mailnews/base/resources/content/msgMail3PaneWindow.js
--- a/mail/base/content/msgMail3PaneWindow.js
+++ b/mail/base/content/msgMail3PaneWindow.js
@@ -1336,20 +1336,20 @@ function GetSelectedIndices(dbView)
   catch (ex) {
     dump("ex = " + ex + "\n");
     return null;
   }
 }
 
 function GetSelectedMessages()
 {
-  if (!gDBView)
+  if (!GetDBView())
     return null;
 
-  var messageArray = gDBView.getURIsForSelection({});
+  var messageArray = GetDBView().getURIsForSelection({});
   return messageArray.length ? messageArray : null;
 }
 
 function GetLoadedMsgFolder()
 {
     if (!gDBView) return null;
     return gDBView.msgFolder;
 }
--- a/mailnews/base/resources/content/msgMail3PaneWindow.js
+++ b/mailnews/base/resources/content/msgMail3PaneWindow.js
@@ -1344,20 +1344,20 @@ function GetSelectedIndices(dbView)
   catch (ex) {
     dump("ex = " + ex + "\n");
     return null;
   }
 }
 
 function GetSelectedMessages()
 {
-  if (!gDBView)
+  if (!GetDBView())
     return null;
 
-  var messageArray = gDBView.getURIsForSelection({});
+  var messageArray = GetDBView().getURIsForSelection({});
   return messageArray.length ? messageArray : null;
 }
 
 function GetLoadedMsgFolder()
 {
     if (!gDBView) return null;
     return gDBView.msgFolder;
 }