summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-04 20:32:24 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-04 20:32:24 +0300
commit26521a465b9b24733459e73676bfa22dca1b5827 (patch)
tree3f2db840d2c1bbf539f278ff8df291aa42e8f3da
parent643402d4a23f81d97c9067725fd5840054cc7e74 (diff)
tabSRMM:
- fixes #2245 (TabSRMM: crash on right-click on \\server\share); - fixes #2246 (UNC links don't work); - version bump
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp2
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp3
-rw-r--r--plugins/TabSRMM/src/version.h2
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>