Fix a potential bug in plugin interface.
This commit is contained in:
parent
5fb81dd1d9
commit
0fea295bea
|
@ -472,8 +472,8 @@ void DirectSearch::run() {
|
|||
}
|
||||
if(i.fileName().contains(m_keyword, Qt::CaseInsensitive)) {
|
||||
// qWarning() << i.fileName() << m_keyword;
|
||||
if(m_searchResult->length() > 49)
|
||||
return;
|
||||
// if(m_searchResult->length() > 49)
|
||||
// return;
|
||||
if((i.isDir() && m_value == DIR_SEARCH_VALUE)) {
|
||||
SearchPluginIface::ResultInfo ri;
|
||||
if(SearchManager::creatResultInfo(ri,i.absoluteFilePath())) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
namespace UkuiSearch {
|
||||
// TODO I want a unlocked queue
|
||||
template <typename T>
|
||||
class LIBSEARCH_EXPORT DataQueue : public QList<T>
|
||||
class LIBSEARCH_EXPORT DataQueue : protected QList<T>
|
||||
{
|
||||
public:
|
||||
inline void enqueue(const T &t) {
|
||||
|
|
Loading…
Reference in New Issue