summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-14 18:19:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-14 18:19:39 +0300
commitc7c2bb6fe1e94010b922eb2dff8bf6a763aa16bb (patch)
tree0876492183d4411850696f6b4281339297c1df69 /src
parentddc34e553c6802d07817146e48b0744d4e57a550 (diff)
fixes #1358 (StdMsg: "Send on Ctrl+Enter" setting is lost after upgrade)
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/globals.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp
index 353bd8bf17..4a3632a363 100644
--- a/src/core/stdmsg/src/globals.cpp
+++ b/src/core/stdmsg/src/globals.cpp
@@ -153,6 +153,9 @@ void InitGlobals()
db_unset(0, SRMMMOD, "HideNames");
}
+ if (!g_dat.bSendOnEnter && !g_dat.bSendOnDblEnter)
+ g_dat.bSendOnCtrlEnter = true;
+
HookEvent(ME_DB_EVENT_ADDED, dbaddedevent);
HookEvent(ME_PROTO_ACK, ackevent);
HookEvent(ME_SKIN2_ICONSCHANGED, IconsChanged);