aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core-utils/lumina-search/MainUI.cpp
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
committerWeblate <noreply@weblate.org>2016-12-14 21:54:31 +0000
commitb965af1625a4296f8ff6d3a1663cae23b73d334f (patch)
tree459685dd1da8c75f67772762aa062d80dfc148f0 /src-qt5/core-utils/lumina-search/MainUI.cpp
parentTranslated using Weblate (lumina_DESKTOP@fr (generated)) (diff)
parentMerge branch 'master' of github.com:trueos/lumina (diff)
downloadlumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.gz
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.tar.bz2
lumina-b965af1625a4296f8ff6d3a1663cae23b73d334f.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/core-utils/lumina-search/MainUI.cpp')
-rw-r--r--src-qt5/core-utils/lumina-search/MainUI.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-qt5/core-utils/lumina-search/MainUI.cpp b/src-qt5/core-utils/lumina-search/MainUI.cpp
index 93ee7411..b3e28f8a 100644
--- a/src-qt5/core-utils/lumina-search/MainUI.cpp
+++ b/src-qt5/core-utils/lumina-search/MainUI.cpp
@@ -17,7 +17,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){
ui->tool_configure->setVisible(false); //app search initially set
livetime = new QTimer(this);
- livetime->setInterval(300); //1/3 second for live searches
+ livetime->setInterval(500); //1/2 second for live searches
livetime->setSingleShot(true);
workthread = new QThread(this);
@@ -56,6 +56,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI){
}
MainUI::~MainUI(){
+ searcher->StopSearch();
workthread->quit();
workthread->wait();
}
@@ -189,6 +190,7 @@ void MainUI::foundSearchItem(QString path){
}
//Now add it to the widget
ui->listWidget->addItem(it);
+ if(ui->listWidget->count()>100){ searcher->StopSearch(); } //just in case
}
void MainUI::stopSearch(){
bgstack15