Changeset 358972f


Ignore:
Timestamp:
08/27/13 12:16:13 (16 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
d27a0c6
Parents:
5aeb213
Message:

Make sure we don't end up back in basic mode for the package
manager when running on a chroot / jail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-pkgmanager/mainWin.cpp

    r426313b r358972f  
    3939  connect(pushPkgApply, SIGNAL( clicked() ), this, SLOT( slotApplyClicked() ) ); 
    4040  connect(action_Quit, SIGNAL( triggered(bool) ), this, SLOT( slotCloseClicked() ) ); 
    41   connect(action_Basic, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) ); 
    42   connect(action_Advanced, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) ); 
    4341  connect(tool_search, SIGNAL( clicked() ), this, SLOT( slotSearchPackages() ) ); 
    4442 
     
    6462  { 
    6563     stackedPkgView->setCurrentIndex(1); 
     64     action_Basic->setChecked(false); 
     65     action_Basic->setEnabled(false); 
    6666     action_Advanced->setChecked(true); 
    67      menu_View->setEnabled(false); 
    68      menu_View->setVisible(false); 
     67     action_Advanced->setEnabled(false); 
     68  } else { 
     69    // Connect our view modes only when not running via in a chroot 
     70    connect(action_Basic, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) ); 
     71    connect(action_Advanced, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) ); 
    6972  } 
    7073 
Note: See TracChangeset for help on using the changeset viewer.