diff options
author | George Hazan <ghazan@miranda.im> | 2020-03-04 20:32:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-03-04 20:32:24 +0300 |
commit | 26521a465b9b24733459e73676bfa22dca1b5827 (patch) | |
tree | 3f2db840d2c1bbf539f278ff8df291aa42e8f3da /plugins/TabSRMM | |
parent | 643402d4a23f81d97c9067725fd5840054cc7e74 (diff) |
tabSRMM:
- fixes #2245 (TabSRMM: crash on right-click on \\server\share);
- fixes #2246 (UNC links don't work);
- version bump
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msgdlgutils.cpp | 3 | ||||
-rw-r--r-- | plugins/TabSRMM/src/version.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 95b8d4bcfa..8e563f090d 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -2567,7 +2567,7 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) break;
// clicked a nick name
- if (g_Settings.bClickableNicks) {
+ if (isChat() && g_Settings.bClickableNicks) {
if (msg == WM_RBUTTONDOWN) {
for (auto &ui : m_si->getUserList()) {
if (mir_wstrcmp(ui->pszNick, tr.lpstrText))
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp index fa1ff6e1cc..8edb9aa78c 100644 --- a/plugins/TabSRMM/src/msgdlgutils.cpp +++ b/plugins/TabSRMM/src/msgdlgutils.cpp @@ -335,6 +335,9 @@ bool IsStringValidLink(wchar_t *pszText) if (pszText == nullptr)
return false;
+ if (pszText[0] == '\\' && pszText[1] == '\\')
+ return true;
+
if (mir_wstrlen(pszText) < 5 || wcschr(pszText, '"'))
return false;
diff --git a/plugins/TabSRMM/src/version.h b/plugins/TabSRMM/src/version.h index 0f4d8024f1..555d02ff66 100644 --- a/plugins/TabSRMM/src/version.h +++ b/plugins/TabSRMM/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 3
#define __MINOR_VERSION 6
#define __RELEASE_NUM 1
-#define __BUILD_NUM 1
+#define __BUILD_NUM 2
#include <stdver.h>
|