changeset 82:b3b9220c91e6

My own tests did not suffice, error when opening cash mail.
author Zerotorescue
date Thu, 16 Sep 2010 18:28:28 +0200
parents 620ec5dc3cb4
children 3c7fd7688bed
files Modules/OpenAll.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Modules/OpenAll.lua	Thu Sep 16 17:25:05 2010 +0200
+++ b/Modules/OpenAll.lua	Thu Sep 16 18:28:28 2010 +0200
@@ -577,7 +577,7 @@
 					-- Notifiy other modules of opening
 					self:SendMessage("MO_OPENING_MAIL");
 					
-					if self.db.profile.keepFreeSpace > 0 and items > slotsAvailable then
+					if self.db.profile.keepFreeSpace > 0 and items and slotsAvailable and items > slotsAvailable then
 						-- If this mail contains more items than the space available, we must only take a few attachments
 						
 						for attachIndex = 1, ATTACHMENTS_MAX_RECEIVE do