summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/msgdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/msgdialog.cpp')
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 34e1d0f78b..9eaa6cec47 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -3099,16 +3099,18 @@ INT_PTR CALLBACK DlgProcMessage(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lP
if (szQuoted)
free(szQuoted);
break;
- } else {
+ }
+ else {
hDBEvent = db_event_last(dat->hContact);
goto quote_from_last;
}
}
- if (dat->hDbEventLast == NULL)
- break;
- else
- hDBEvent = dat->hDbEventLast;
+ hDBEvent = dat->hDbEventLast;
+
quote_from_last:
+ if (hDBEvent == NULL)
+ break;
+
SendDlgItemMessage(hwndDlg, IDC_LOG, EM_EXGETSEL, 0, (LPARAM)&sel);
if (sel.cpMin == sel.cpMax) {
DBEVENTINFO dbei = { sizeof(dbei) };