From f65a307b84288eabf54a8a337bb249aed5eee0ba Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 May 2015 00:03:58 +0000 Subject: fix for a cursor that follows mouse git-svn-id: http://svn.miranda-ng.org/main/trunk@13565 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/clist/genmenuopt.cpp | 3 +++ src/modules/protocols/protoaccs.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/clist/genmenuopt.cpp b/src/modules/clist/genmenuopt.cpp index 60f8b6962f..c9b44e0022 100644 --- a/src/modules/clist/genmenuopt.cpp +++ b/src/modules/clist/genmenuopt.cpp @@ -311,6 +311,7 @@ public: //---- init dialog ------------------------------------------- virtual void OnInitDialog() { + m_bDragging = 0; iInitMenuValue = db_get_b(NULL, "CList", "MoveProtoMenus", TRUE); HIMAGELIST himlCheckBoxes = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_COLOR32 | ILC_MASK, 2, 2); @@ -353,6 +354,8 @@ public: int iNewMenuValue = !m_radio1.GetState(); if (iNewMenuValue != iInitMenuValue) { + db_set_b(NULL, "CList", "MoveProtoMenus", iNewMenuValue); + RebuildProtoMenus(iNewMenuValue); iInitMenuValue = iNewMenuValue; } diff --git a/src/modules/protocols/protoaccs.cpp b/src/modules/protocols/protoaccs.cpp index 1977816cf3..9dd7e5f9ee 100644 --- a/src/modules/protocols/protoaccs.cpp +++ b/src/modules/protocols/protoaccs.cpp @@ -608,8 +608,6 @@ void BuildProtoMenus() void RebuildProtoMenus(int iNewValue) { - db_set_b(NULL, "CList", "MoveProtoMenus", iNewValue); - RebuildMenuOrder(); BuildProtoMenus(); } -- cgit v1.2.3