~ubuntu-branches/ubuntu/precise/kde-runtime/precise-updates

« back to all changes in this revision

Viewing changes to nepomuk/kcm/statuswidget.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-11-20 15:46:42 UTC
  • mfrom: (18.1.5 precise-proposed)
  • Revision ID: package-import@ubuntu.com-20141120154642-hyesdbuvsk78ihtz
Tags: 4:4.8.5-0ubuntu0.3
* SECURITY UPDATE: Insufficient Input Validation By IO Slaves and
  Webkit Part
 - Add upstream_CVE-2014-8600.diff to escape protocol twice: once
   for i18n, and once for HTML
 - https://www.kde.org/info/security/advisory-20141113-1.txt
 - CVE-2014-8600
 - LP: #1393479

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
Nepomuk::StatusWidget::StatusWidget( QWidget* parent )
42
42
        : KDialog( parent ),
43
43
        m_connected( false ),
44
 
        m_updatingJobCnt( 0 ),
 
44
        m_updateRunning( false ),
45
45
        m_updateRequested( false ),
46
46
        m_fileIndexerService(0)
47
47
{
97
97
 
98
98
void Nepomuk::StatusWidget::slotUpdateStoreStatus()
99
99
{
100
 
    if ( !m_updatingJobCnt && !m_updateTimer.isActive() ) {
101
 
        m_updatingJobCnt = 2;
 
100
    if ( !m_updateRunning && !m_updateTimer.isActive() ) {
 
101
        m_updateRunning = true;
102
102
 
103
103
        // update file count
104
104
        // ========================================
119
119
    m_labelFileCount->setText( i18np( "1 file in index", "%1 files in index", query->binding( 0 ).literal().toInt() ) );
120
120
    query->deleteLater();
121
121
 
122
 
    if ( !--m_updatingJobCnt ) {
123
 
        // start the timer to avoid too many updates
124
 
        m_updateTimer.start();
125
 
    }
 
122
    // start the timer to avoid too many updates
 
123
    m_updateTimer.start();
 
124
    m_updateRunning = false;
126
125
}
127
126
 
128
127