aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2019-04-03 08:15:07 -0400
committerKen Moore <ken@ixsystems.com>2019-04-03 08:15:07 -0400
commit11b8c5de6957220e04d843d471bf1b6295f3b75c (patch)
tree1d6cee634cbc0303fa66401b0b5c4ffa6660a376 /src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
parentRemove the lumina-[calculator/pdf] ports. (diff)
downloadlumina-11b8c5de6957220e04d843d471bf1b6295f3b75c.tar.gz
lumina-11b8c5de6957220e04d843d471bf1b6295f3b75c.tar.bz2
lumina-11b8c5de6957220e04d843d471bf1b6295f3b75c.zip
A tiny bit of cleanup.
Turn off the in-search stop detection for the start menu. Might be causing a race condition between the mutex locks and the processEvents calls. This might make the search populate a bit slower, but should never hang up in the middle of a search.
Diffstat (limited to 'src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp')
-rw-r--r--src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp5
1 files changed, 3 insertions, 2 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 997d2377..bcb15784 100644
--- a/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
+++ b/src-qt5/core/lumina-desktop/panel-plugins/systemstart/StartMenu.cpp
@@ -244,6 +244,7 @@ void StartMenu::do_search(QString search, bool force, Ui::StartMenu *tui){
if(LUtils::isValidBinary(tmp)){ found << "0::::application/x-executable::::"+tmp; }
QList<XDGDesktop*> apps = LSession::handle()->applicationMenu()->currentAppHash()->value("All");
for(int i=0; i<apps.length(); i++){
+ if(apps[i]==0){ continue; }
int priority = -1;
if(apps[i]->name.toLower()==search.toLower()){ priority = 10; }
else if(apps[i]->name.startsWith(search, Qt::CaseInsensitive)){ priority = 15; }
@@ -276,10 +277,10 @@ void StartMenu::do_search(QString search, bool force, Ui::StartMenu *tui){
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){
+ /*if(i%3==0){
QApplication::processEvents();
if(searchTimer->isActive()){ searchmutex.unlock(); return; } //search changed - go ahead and stop here
- }
+ }*/
}
tui->stackedWidget->setCurrentWidget(tui->page_search);
searchmutex.unlock();
bgstack15