summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Clist_mw/src/contact.cpp9
-rw-r--r--plugins/Clist_nicer/src/contact.cpp7
-rw-r--r--src/modules/clist/contact.cpp11
3 files changed, 0 insertions, 27 deletions
diff --git a/plugins/Clist_mw/src/contact.cpp b/plugins/Clist_mw/src/contact.cpp
index a45d7152c8..4015a1b997 100644
--- a/plugins/Clist_mw/src/contact.cpp
+++ b/plugins/Clist_mw/src/contact.cpp
@@ -154,20 +154,11 @@ int CompareContacts( const struct ClcContact *contact1, const struct ClcContact
#undef SAFESTRING
-static UINT_PTR resortTimerId = 0;
-static VOID CALLBACK SortContactsTimer(HWND hwnd,UINT message,UINT_PTR idEvent,DWORD dwTime)
-{
- KillTimer(NULL,resortTimerId);
- resortTimerId = 0;
-}
-
void SortContacts(void)
{
//avoid doing lots of resorts in quick succession
sortByStatus = db_get_b(NULL,"CList","SortByStatus",SETTING_SORTBYSTATUS_DEFAULT);
sortByProto = db_get_b(NULL,"CList","SortByProto",SETTING_SORTBYPROTO_DEFAULT);
- if (resortTimerId) KillTimer(NULL,resortTimerId);
- resortTimerId = SetTimer(NULL,0,50,SortContactsTimer);
}
INT_PTR ContactChangeGroup(WPARAM wParam,LPARAM lParam)
diff --git a/plugins/Clist_nicer/src/contact.cpp b/plugins/Clist_nicer/src/contact.cpp
index b482c35291..0c3201a434 100644
--- a/plugins/Clist_nicer/src/contact.cpp
+++ b/plugins/Clist_nicer/src/contact.cpp
@@ -287,13 +287,6 @@ int CompareContacts(const ClcContact* c1, const ClcContact* c2)
#undef SAFESTRING
-static int resortTimerId = 0;
-static VOID CALLBACK SortContactsTimer(HWND hwnd, UINT message, UINT idEvent, DWORD dwTime)
-{
- KillTimer(NULL, resortTimerId);
- resortTimerId = 0;
-}
-
int SetHideOffline(WPARAM wParam, LPARAM lParam)
{
switch ((int)wParam) {
diff --git a/src/modules/clist/contact.cpp b/src/modules/clist/contact.cpp
index c7daba0d76..a66497e895 100644
--- a/src/modules/clist/contact.cpp
+++ b/src/modules/clist/contact.cpp
@@ -132,22 +132,11 @@ int fnCompareContacts(const ClcContact* c1, const ClcContact* c2)
return _tcsicmp(namea, nameb);
}
-static UINT_PTR resortTimerId = 0;
-static VOID CALLBACK SortContactsTimer(HWND, UINT, UINT_PTR, DWORD)
-{
- KillTimer(NULL, resortTimerId);
- resortTimerId = 0;
-}
-
void fnSortContacts(void)
{
//avoid doing lots of resorts in quick succession
sortByStatus = db_get_b(NULL, "CList", "SortByStatus", SETTING_SORTBYSTATUS_DEFAULT);
sortByProto = db_get_b(NULL, "CList", "SortByProto", SETTING_SORTBYPROTO_DEFAULT);
- if (resortTimerId)
- KillTimer(NULL, resortTimerId);
- // setting this to a higher delay causes shutdown waits.
- resortTimerId = SetTimer(NULL, 0, 500, SortContactsTimer);
}
INT_PTR ContactChangeGroup(WPARAM wParam, LPARAM lParam)