Changeset 54f447a


Ignore:
Timestamp:
10/24/13 08:16:00 (14 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
b2b0c62
Parents:
1f27eb7
Message:

Add a bunch of debugging output to lp-gui. See if this can help to narrow down where Kris/Josh? are having it crash.

File:
1 edited

Legend:

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

    r23619d0 r54f447a  
    101101  if(ui->combo_pools->currentIndex() != -1){ cPool = ui->combo_pools->currentText(); } 
    102102  //Get the list of managed pools 
     103  qDebug() << "[DEBUG] Fetching list of pools"; 
    103104  QStringList pools = LPBackend::listDatasets(); 
    104105  QStringList poolsAvail = LPBackend::listPossibleDatasets(); 
     
    107108  if(!pools.isEmpty()){ ui->combo_pools->addItems(pools); } 
    108109  //Now set the currently selected pools 
     110  qDebug() << "[DEBUG] Pool list:" << pools; 
    109111  if(pools.length() > 0){ 
    110112    poolSelected=true;     
     
    118120    ui->combo_pools->setCurrentIndex(0); 
    119121  } 
     122  qDebug() << "[DEBUG] Update pool menu options"; 
    120123  //Now update the add/remove pool menu's 
    121124  ui->menuManage_Pool->clear(); 
     
    130133  } 
    131134  ui->menuUnmanage_Pool->setEnabled( !ui->menuUnmanage_Pool->isEmpty() ); 
     135  qDebug() << "[DEBUG] Update user menus"; 
    132136  //Now update the user's that are available for home-dir packaging 
    133137  QDir hdir("/usr/home"); 
     
    139143  //Now update the interface appropriately 
    140144  ui->combo_pools->setEnabled(poolSelected); 
     145  qDebug() << "[DEBUG] Finished updatePoolList()"; 
    141146  updateTabs(); 
    142147} 
     
    160165void LPMain::updateTabs(){ 
    161166  //qDebug() << "Update Tabs" << poolSelected; 
     167  qDebug() << "[DEBUG] start updateTabs():" << poolSelected; 
    162168  viewChanged(); 
    163169  ui->tabWidget->setEnabled(poolSelected); 
     
    169175  if(poolSelected){ 
    170176    showWaitBox(tr("Loading zpool information")); 
     177    qDebug() << "[DEBUG] loadPoolData:" << ui->combo_pools->currentText(); 
    171178    POOLDATA = LPGUtils::loadPoolData(ui->combo_pools->currentText()); 
     179    qDebug() << "[DEBUG] loaded data"; 
    172180    hideWaitBox(); 
    173181    //Now list the status information 
Note: See TracChangeset for help on using the changeset viewer.