summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r--protocols/Telegram/src/options.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Telegram/src/options.cpp b/protocols/Telegram/src/options.cpp
index 86f342269a..e9d5f83b9b 100644
--- a/protocols/Telegram/src/options.cpp
+++ b/protocols/Telegram/src/options.cpp
@@ -201,6 +201,8 @@ public:
bool OnInitDialog() override
{
+ m_list.SetExtendedListViewStyleEx(LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT);
+
LVCOLUMN lvc = {};
lvc.mask = LVCF_TEXT | LVCF_WIDTH;
@@ -235,6 +237,9 @@ public:
void onContextMenu(CContextMenuPos *pos)
{
+ if (pos->iCurr == -1)
+ return;
+
HMENU hMenu = CreatePopupMenu();
AppendMenuW(hMenu, MF_STRING, 100, TranslateT("Kill session"));