Changeset 5787058


Ignore:
Timestamp:
01/07/15 05:31:18 (3 weeks ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.1.1
Children:
b36e0c6
Parents:
f61ae65
Message:

Quick fix for how pc-updategui replaces the log viewer text when the log file changes during an upgrade. (always replace the entire log output with the contents of the file, no apparent time difference from trying to cut/paste the log file together to only make minor additions as the file changes).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt5/pc-updategui/mainUI.cpp

    r0164657 r5787058  
    232232  if(ui->tabWidget->currentWidget()==ui->tab_log){ 
    233233    QString log = pcbsd::Utils::readTextFile(UPDATE_LOG_FILE); 
    234     QString clog = ui->text_log->toPlainText(); 
    235     if(clog.length() > log.length() || clog.isEmpty() ){ 
     234    //QString clog = ui->text_log->toPlainText(); 
     235    //if(clog.length() > log.length() || clog.isEmpty() ){ 
    236236      //Completely different log than before - reset the entire view 
    237237      ui->text_log->setPlainText(log); 
    238     }else{ 
     238    //}else{ 
    239239      //New info to the same log - just append the difference 
    240       ui->text_log->appendPlainText( log.remove(clog) ); 
    241     } 
     240      //ui->text_log->appendPlainText( log.remove(clog) ); 
     241    //} 
    242242    //Keep it at the bottom (the latest info) 
    243243    ui->text_log->verticalScrollBar()->setSliderPosition( ui->text_log->verticalScrollBar()->maximum() ); 
Note: See TracChangeset for help on using the changeset viewer.