Fixed comparison always true.
This commit is contained in:
parent
0b78377635
commit
05a9f75874
@ -1264,8 +1264,8 @@ void maildirFolder::expunge()
|
||||
|
||||
if (!nums.empty())
|
||||
{
|
||||
for (std::vector <int>::size_type i = nums.size() - 1 ; i >= 0 ; --i)
|
||||
m_messageInfos.erase(m_messageInfos.begin() + i);
|
||||
for (std::vector <int>::size_type i = nums.size() ; i != 0 ; --i)
|
||||
m_messageInfos.erase(m_messageInfos.begin() + (i - 1));
|
||||
}
|
||||
|
||||
m_messageCount -= nums.size();
|
||||
|
Loading…
Reference in New Issue
Block a user