diff options
author | George Hazan <ghazan@miranda.im> | 2021-05-15 21:04:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-05-15 21:04:09 +0300 |
commit | 06e1bd18909b1d617b97d18739211ada6446c542 (patch) | |
tree | d25e2805d18712a6e9a32a69cce6c246e5e704c9 /plugins/QuickSearch | |
parent | 73aeb6a522d433953f936a24ee0f98cf17e5fcbc (diff) |
fixes #597 (QuickSearch: Copying contacts into clipboard works incorrect)
Diffstat (limited to 'plugins/QuickSearch')
-rw-r--r-- | plugins/QuickSearch/src/window_misc.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/QuickSearch/src/window_misc.cpp b/plugins/QuickSearch/src/window_misc.cpp index 4e79febb1f..d636374896 100644 --- a/plugins/QuickSearch/src/window_misc.cpp +++ b/plugins/QuickSearch/src/window_misc.cpp @@ -109,9 +109,12 @@ void QSMainDlg::CopyMultiLines() int i = 0; for (auto &it : g_plugin.m_columns) { - it->width = m_grid.GetColumnWidth(i++); - if (it->width >= 10) - buf.AppendFormat(L"%s\t", it->title); + if (it->bEnabled) { + it->width = m_grid.GetColumnWidth(i); + if (it->width >= 10) + buf.AppendFormat(L"%s\t", it->title); + } + i++; } buf.Append(L"\r\n"); @@ -121,7 +124,7 @@ void QSMainDlg::CopyMultiLines() i = 0; for (auto &it : g_plugin.m_columns) { - if (it->width >= 10) + if (it->bEnabled && it->width >= 10) buf.AppendFormat(L"%s\t", pRow->pValues[i].text); i++; } |