Changeset ff74b40


Ignore:
Timestamp:
01/13/14 10:28:15 (7 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
0c876f6
Parents:
ea13527
Message:

Add active enable/disable ability to the start/stop scrub menu options. Start scrub should only be available if nothing is currently running on that pool, and stop scrub should only be available if a scrub is actually running.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/life-preserver/lp-gui/LPMain.cpp

    r8b3a780 rff74b40  
    197197      ui->label_finishedstat->setVisible(true); 
    198198    } 
    199     if(POOLDATA.runningStatus.isEmpty()){ ui->label_runningstat->setVisible(false); } 
    200     else{ 
     199    if(POOLDATA.runningStatus.isEmpty()){  
     200      ui->label_runningstat->setVisible(false); 
     201      ui->action_startScrub->setEnabled(true); 
     202      ui->action_stopScrub->setEnabled(false); 
     203    }else{ 
    201204      ui->label_runningstat->setText(POOLDATA.runningStatus); 
    202205      ui->label_runningstat->setVisible(true); 
     206      ui->action_startScrub->setEnabled(false); //Something already running 
     207      ui->action_stopScrub->setEnabled(POOLDATA.runningStatus.contains("scrub", Qt::CaseInsensitive)); 
    203208    }        
    204209    if(POOLDATA.errorStatus.isEmpty()){ ui->label_errorstat->setVisible(false); } 
Note: See TracChangeset for help on using the changeset viewer.