summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-18 17:41:27 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-18 17:41:27 +0300
commita7c2ce2ee4b54a5e8a219743bdcd289b723347a6 (patch)
tree1994e6e90466446e0167f8682e5060a13119f99a /src/mir_app
parent62ef4ddccfd98ae1a572af51fee6417e5f445035 (diff)
fix for saving combo values in EnterString()
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/enterstring.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/enterstring.cpp b/src/mir_app/src/enterstring.cpp
index 8bb3970d8e..bee1366815 100644
--- a/src/mir_app/src/enterstring.cpp
+++ b/src/mir_app/src/enterstring.cpp
@@ -98,7 +98,7 @@ class CEnterStringDlg : public CDlgBase
char setting[MAXMODULELABELLENGTH];
mir_snprintf(setting, "%s%d", m_param.szDataPrefix, id);
db_set_ws(0, m_param.szModuleName, setting, string);
- db_set_b(0, m_param.szModuleName, m_param.szDataPrefix, (id + 1) % idcControl);
+ db_set_b(0, m_param.szModuleName, m_param.szDataPrefix, (id + 1) % m_param.recentCount);
}
LRESULT onModuleUnload(UINT, WPARAM wParam, LPARAM)