mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Disable Search in SharedFilesDialog while typping.
This commit is contained in:
parent
eccff5358a
commit
d91964acb3
@ -81,6 +81,8 @@
|
||||
|
||||
#define MAX_SEARCH_RESULTS 3000
|
||||
|
||||
#define DISABLE_SEARCH_WHILE_TYPING 1
|
||||
|
||||
// Define to avoid using the search in treeview, because it is really slow for now.
|
||||
//
|
||||
//#define DONT_USE_SEARCH_IN_TREE_VIEW 1
|
||||
@ -1279,8 +1281,10 @@ void SharedFilesDialog::onFilterTextEdited()
|
||||
ui.filterStartButton->setEnabled(true) ;
|
||||
ui.filterPatternFrame->setToolTip(QString());
|
||||
|
||||
#ifndef DISABLE_SEARCH_WHILE_TYPING
|
||||
mFilterTimer->start( 500 ); // This will fire filterRegExpChanged after 500 ms.
|
||||
// If the user types something before it fires, the timer restarts counting
|
||||
#endif
|
||||
}
|
||||
|
||||
void SharedFilesDialog::filterRegExpChanged()
|
||||
|
Loading…
Reference in New Issue
Block a user