Ignore:
Timestamp:
08/21/13 08:16:09 (12 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
07e9b0f
Parents:
171831b
Message:

Clean up when the SSH key generation is automatically run, and remind the user if the remote host information changes to save the SSH Key to a USB stick

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/life-preserver/LPConfig.cpp

    r2a5e337 r4a54eef  
    105105   
    106106  //Replication Settings 
     107  bool updateSSHKey = false; 
    107108  if(isReplicated != ui->groupReplicate->isChecked()){ 
    108109    remoteChanged = true; 
    109110    isReplicated = ui->groupReplicate->isChecked(); 
     111    if(isReplicated){ updateSSHKey = true; } 
    110112  } 
    111113  QString tmp = ui->lineHostName->text().simplified(); 
    112   if( tmp != remoteHost ){ remoteChanged = true; remoteHost = tmp; } 
     114  if( tmp != remoteHost ){ remoteChanged = true; remoteHost = tmp; updateSSHKey=true;} 
    113115  tmp = ui->lineUserName->text().simplified(); 
    114   if( tmp != remoteUser ){ remoteChanged = true; remoteUser = tmp; } 
     116  if( tmp != remoteUser ){ remoteChanged = true; remoteUser = tmp; updateSSHKey=true;} 
    115117  tmp = ui->lineRemoteDataset->text().simplified(); 
    116118  if( tmp != remoteDataset ){ remoteChanged = true; remoteDataset = tmp; } 
    117   if( ui->spinPort->value() != remotePort){ remoteChanged = true; remotePort = ui->spinPort->value(); } 
     119  if( ui->spinPort->value() != remotePort){ remoteChanged = true; remotePort = ui->spinPort->value(); updateSSHKey=true;} 
    118120  int nFreq = -1; 
    119121  if(ui->radioRepTime->isChecked()){ 
     
    124126  }else{ 
    125127    if( nFreq != remoteFreq ){ remoteChanged = true; remoteFreq = nFreq; } 
     128  } 
     129  if(updateSSHKey){ 
     130    //Prompt for the SSH key generation 
     131    LPBackend::setupSSHKey(remoteHost, remoteUser, remotePort); 
    126132  } 
    127133} 
Note: See TracChangeset for help on using the changeset viewer.