diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-13 00:03:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-13 00:03:58 +0000 |
commit | f65a307b84288eabf54a8a337bb249aed5eee0ba (patch) | |
tree | 263b7d74481836cd01fba0f79815d0ae3f44be58 /src | |
parent | a4f715971c8c0f5be8f8fcc8678c7dd57cab0f8e (diff) |
fix for a cursor that follows mouse
git-svn-id: http://svn.miranda-ng.org/main/trunk@13565 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/clist/genmenuopt.cpp | 3 | ||||
-rw-r--r-- | 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();
}
|