summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/clist/genmenuopt.cpp3
-rw-r--r--src/modules/protocols/protoaccs.cpp2
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();
}