diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2008-06-04 03:17:05 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2008-06-04 03:17:05 +0000 |
commit | f0d7043a6ec0011c2fd8c8fbbe1250b15ae4aef3 (patch) | |
tree | 91f1b2a692e10c7c7202860b475d8ba8eab2bf88 /Plugins/utils/ContactAsyncQueue.cpp | |
parent | bc527b1e07f18ecab6badda0a96db529c3472043 (diff) |
some fixes
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@111 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/utils/ContactAsyncQueue.cpp')
-rw-r--r-- | Plugins/utils/ContactAsyncQueue.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Plugins/utils/ContactAsyncQueue.cpp b/Plugins/utils/ContactAsyncQueue.cpp index ca6bf83..9ea2682 100644 --- a/Plugins/utils/ContactAsyncQueue.cpp +++ b/Plugins/utils/ContactAsyncQueue.cpp @@ -22,9 +22,12 @@ Boston, MA 02111-1307, USA. // Itens with higher time at end
-static int QueueSortItems(const QueueItem *i1, const QueueItem *i2)
+static int QueueSortItems(const QueueItem *oldItem, const QueueItem *newItem)
{
- return i1->check_time - i2->check_time;
+ if (oldItem->check_time == newItem->check_time)
+ return -1;
+
+ return oldItem->check_time - newItem->check_time;
}
// Itens with higher time at end
|