summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_options.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-05-08 18:18:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-05-10 19:45:55 +0300
commit0943ae89e869ded753e5fbc5b64dca458a8f31b8 (patch)
tree7a661c8402302df8a4eb2d20b97218e346d896c9 /protocols/Tox/src/tox_options.cpp
parentacd0d6c62891a2e3fa0bf94b66b93e65e5922e24 (diff)
CCtrlListView::MoveItem, CCtrlListView::SetCurSel, CCtrlCombo::SelectData - new useful methods
(cherry picked from commit 9661e86b4d2e1280b6e5e562ffafb46d1b6c0817)
Diffstat (limited to 'protocols/Tox/src/tox_options.cpp')
-rw-r--r--protocols/Tox/src/tox_options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_options.cpp b/protocols/Tox/src/tox_options.cpp
index 781c279d7e..1c3a463a6f 100644
--- a/protocols/Tox/src/tox_options.cpp
+++ b/protocols/Tox/src/tox_options.cpp
@@ -330,7 +330,7 @@ public:
if (m_iItem == -1) {
m_iItem = m_list->AddItem(ipv4, -1, NULL, 1);
- m_list->SetItemState(m_iItem, LVIS_FOCUSED | LVIS_SELECTED, 0x000F);
+ m_list->SetCurSel(m_iItem);
m_list->EnsureVisible(m_iItem, TRUE);
}
else