Changeset 27f03ba


Ignore:
Timestamp:
08/13/13 07:26:41 (12 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
b482789
Parents:
e977365
Message:

Fix launching the package manager via warden gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/warden-gui/dialogwarden.cpp

    r6c1dd87 r27f03ba  
    3939 
    4040void dialogWarden::programInit() 
    41 { 
     41 
     42   // Disable these until we check if the jail is running 
     43   pushTerminal->setEnabled(false); 
     44   pushPackageManager->setEnabled(false); 
     45 
    4246   // Setup our listview options 
    4347   listJails->setSelectionMode(QAbstractItemView::SingleSelection); 
     
    595599              if ( listJails->currentItem()->text(0) == currentStatusWorkingJail ) { 
    596600                if ( running ) { 
     601                  pushPackageManager->setEnabled(true); 
    597602                  pushTerminal->setEnabled(true); 
    598603                  pushStart->setEnabled(true); 
     
    601606                  pushStart->setToolTip(tr("Stop the selected jail")); 
    602607                } else { 
     608                  pushPackageManager->setEnabled(false); 
    603609                  pushTerminal->setEnabled(false); 
    604610                  pushStart->setEnabled(true); 
     
    13801386     //pushStart->setEnabled(true); 
    13811387     pushTerminal->setEnabled(true); 
     1388     pushPackageManager->setEnabled(true); 
    13821389     pushStart->setIcon(QIcon(":stopjail.png")); 
    13831390     pushStart->setIconSize(QSize(16,16)); 
     
    13871394     //pushStart->setEnabled(true); 
    13881395     pushTerminal->setEnabled(false); 
     1396     pushPackageManager->setEnabled(false); 
    13891397     pushStart->setIcon(QIcon(":running.png")); 
    13901398     pushStart->setIconSize(QSize(16,16)); 
     
    14491457   if ( ! listJails->currentItem() ) 
    14501458     return; 
    1451    QString cmd = "pc-pkgmanager -chroot usr/jails/" + listJails->currentItem()->text(0) + " &";  
     1459   QString cmd = "pc-pkgmanager -chroot /usr/jails/" + listJails->currentItem()->text(0) + " &";  
    14521460   system(cmd.toLatin1()); 
    14531461} 
Note: See TracChangeset for help on using the changeset viewer.