File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,6 @@ void SearchListView::searchTextChanged(const QString & arg1)
186
186
mCurList = mList ;
187
187
}
188
188
189
- mCurList ->setSingleSelection (0 );
190
189
mSearchList ->setRowCount (0 );
191
190
int rows = mList ->getRowCount ();
192
191
int columns = mList ->getColumnCount ();
@@ -203,6 +202,7 @@ void SearchListView::searchTextChanged(const QString & arg1)
203
202
204
203
mSearchList ->reloadData ();
205
204
205
+ bool hasSetSingleSelection = false ;
206
206
if (!mLastFirstColValue .isEmpty ())
207
207
{
208
208
rows = mCurList ->getRowCount ();
@@ -219,10 +219,13 @@ void SearchListView::searchTextChanged(const QString & arg1)
219
219
mCurList ->setTableOffset (cur);
220
220
}
221
221
mCurList ->setSingleSelection (i);
222
+ hasSetSingleSelection = true ;
222
223
break ;
223
224
}
224
225
}
225
226
}
227
+ if (!hasSetSingleSelection)
228
+ mCurList ->setSingleSelection (0 );
226
229
227
230
if (rows == 0 )
228
231
emit emptySearchResult ();
You can’t perform that action at this time.
0 commit comments