Changeset 3806e3e


Ignore:
Timestamp:
10/29/14 06:54:04 (2 months ago)
Author:
Ken Moore <ken@…>
Branches:
master
Children:
b39e0fd, ba3e17f
Parents:
72ae168
Message:

Insert a couple sanity checks into the Qt4 AppCafe? to try and find/prevent random crashes that people are reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/mainUI.cpp

    r3a23f28 r3806e3e  
    143143      return; 
    144144    } 
     145  }else{ 
     146    PBI->shutdown(); //close down safely 
    145147  } 
    146148  //Stop the network processes if necessary 
     
    705707 
    706708void MainUI::slotUpdateBrowserHome(){ 
     709  //Prevent two processes running this at the same time 
     710  static bool isupdating = false; 
     711  if(isupdating){ return; } 
     712  isupdating = true; 
    707713  //Load the Recommendations 
    708714  if(homeRec.isEmpty()){ homeRec = PBI->getRecommendedApps(); } 
     
    756762    catlayout->addStretch(); //add a spacer to the end 
    757763    ui->scroll_br_cats->widget()->setLayout(catlayout); 
     764  isupdating = false; //done 
    758765} 
    759766 
Note: See TracChangeset for help on using the changeset viewer.