aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Moore <moorekou@gmail.com>2016-06-15 12:55:20 -0400
committerKen Moore <moorekou@gmail.com>2016-06-15 12:55:20 -0400
commit136253f5c884c65b6bc1efc489818fea1428b0e6 (patch)
tree2bc33c03510d16c118e0379d98df5f083156b81f
parentMerge branch 'master' of github.com:pcbsd/lumina (diff)
downloadlumina-136253f5c884c65b6bc1efc489818fea1428b0e6.tar.gz
lumina-136253f5c884c65b6bc1efc489818fea1428b0e6.tar.bz2
lumina-136253f5c884c65b6bc1efc489818fea1428b0e6.zip
make the new start menu search a bit more responsive (in case of lots of results).
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
index 8e72030d..50d084e3 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
@@ -230,7 +230,7 @@ void StartMenu::do_search(QString search, bool force){
}
}
found.sort(Qt::CaseInsensitive); //sort by priority/type (lower numbers are higher on list)
- qDebug() << "Sorted Items:" << found;
+ //qDebug() << "Sorted Items:" << found;
//Now add the items to the menu in order
for(int i=0; i<found.length(); i++){
if( !QFile::exists(found[i].section("::::",2,-1)) ){ continue; } //invalid favorite - skip it
@@ -251,6 +251,10 @@ void StartMenu::do_search(QString search, bool force){
connect(it, SIGNAL(RemovedShortcut()), this, SLOT(UpdateFavs()) );
connect(it, SIGNAL(RunItem(QString)), this, SLOT(LaunchItem(QString)) );
connect(it, SIGNAL(toggleQuickLaunch(QString, bool)), this, SLOT(UpdateQuickLaunch(QString, bool)) );
+ if(i%3==0){
+ QApplication::processEvents();
+ if(searchTimer->isActive()){ return; } //search changed - go ahead and stop here
+ }
}
ui->stackedWidget->setCurrentWidget(ui->page_search);
}
bgstack15