summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-04-09 17:03:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-04-09 17:03:42 +0300
commit3f6bdf928ebf7e7e70d999905eb363386db2868a (patch)
tree00cb2d5571a08f741e859854b32add08b5f682e2 /src
parentf9d4bd465a120f9c2169c02d8303448ca25ea780 (diff)
fixes #794
Diffstat (limited to 'src')
-rw-r--r--src/core/stdmsg/src/msgdialog.cpp6
-rw-r--r--src/core/stdmsg/src/msgs.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp
index 4ad170a8bf..7cd9f37272 100644
--- a/src/core/stdmsg/src/msgdialog.cpp
+++ b/src/core/stdmsg/src/msgdialog.cpp
@@ -1114,6 +1114,10 @@ INT_PTR CSrmmWindow::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
}
return TRUE;
+ case DM_APPENDTOLOG:
+ StreamInEvents(wParam, 1, 1);
+ break;
+
case DM_REMAKELOG:
StreamInEvents(m_hDbEventFirst, -1, 0);
break;
@@ -1140,7 +1144,7 @@ INT_PTR CSrmmWindow::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
SendMessage(m_hwnd, DM_UPDATELASTMESSAGE, 0, 0);
}
if (hDbEvent != m_hDbEventFirst && db_event_next(m_hContact, hDbEvent) == 0)
- StreamInEvents(hDbEvent, 1, 1);
+ SendMessage(m_hwnd, DM_APPENDTOLOG, hDbEvent, 0);
else
SendMessage(m_hwnd, DM_REMAKELOG, 0, 0);
diff --git a/src/core/stdmsg/src/msgs.h b/src/core/stdmsg/src/msgs.h
index e7a9ee5076..9e3e11b129 100644
--- a/src/core/stdmsg/src/msgs.h
+++ b/src/core/stdmsg/src/msgs.h
@@ -30,6 +30,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define DM_CASCADENEWWINDOW (WM_USER+13)
#define DM_OPTIONSAPPLIED (WM_USER+14)
#define DM_UPDATETITLE (WM_USER+16)
+#define DM_APPENDTOLOG (WM_USER+17)
#define DM_NEWTIMEZONE (WM_USER+18)
#define DM_TYPING (WM_USER+20)
#define DM_UPDATEWINICON (WM_USER+21)