diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-28 21:22:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-28 21:22:16 +0300 |
commit | 1781b1895c583f7d5767e2376681695c7a618083 (patch) | |
tree | 3c338c5efe4e39d914ceedeca7a3e27b5c5ed7f8 /plugins/QuickSearch/src/options.cpp | |
parent | 6d45029acb15846f285e36dc7fb05a21c52a9146 (diff) |
fixes #2890 (QuickSearch: пустые строки в выпадающем меню)
Diffstat (limited to 'plugins/QuickSearch/src/options.cpp')
-rw-r--r-- | plugins/QuickSearch/src/options.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/QuickSearch/src/options.cpp b/plugins/QuickSearch/src/options.cpp index eb9ad28ec4..e2d42a6061 100644 --- a/plugins/QuickSearch/src/options.cpp +++ b/plugins/QuickSearch/src/options.cpp @@ -263,7 +263,8 @@ public: cmbOther.SetCurSel(0); for (int i = CNF_FIRSTNAME; i < CNF_MAX; i++) - cmbCnfType.AddString(cnf2str(i), i); + if (auto *pwszText = cnf2str(i)) + cmbCnfType.AddString(pwszText, i); cmbCnfType.SetCurSel(0); chkDrawGrid.SetState((g_plugin.m_flags & QSO_DRAWGRID) != 0); |