Permalink
Browse files

Make sure we don't end up back in basic mode for the package

manager when running on a chroot / jail
  • Loading branch information...
1 parent 5aeb213 commit 358972f4726454fc1e34978a4ba1d8462dbc3b3b @kmoore134 kmoore134 committed Aug 27, 2013
Showing with 7 additions and 4 deletions.
  1. +7 −4 src-qt4/pc-pkgmanager/mainWin.cpp
@@ -38,8 +38,6 @@ void mainWin::ProgramInit(QString ch)
connect(buttonRescanPkgs, SIGNAL(clicked()), this, SLOT(slotRescanPkgsClicked()));
connect(pushPkgApply, SIGNAL( clicked() ), this, SLOT( slotApplyClicked() ) );
connect(action_Quit, SIGNAL( triggered(bool) ), this, SLOT( slotCloseClicked() ) );
- connect(action_Basic, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) );
- connect(action_Advanced, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) );
connect(tool_search, SIGNAL( clicked() ), this, SLOT( slotSearchPackages() ) );
// Setup the action group
@@ -63,9 +61,14 @@ void mainWin::ProgramInit(QString ch)
if ( !wDir.isEmpty() )
{
stackedPkgView->setCurrentIndex(1);
+ action_Basic->setChecked(false);
+ action_Basic->setEnabled(false);
action_Advanced->setChecked(true);
- menu_View->setEnabled(false);
- menu_View->setVisible(false);
+ action_Advanced->setEnabled(false);
+ } else {
+ // Connect our view modes only when not running via in a chroot
+ connect(action_Basic, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) );
+ connect(action_Advanced, SIGNAL( triggered(bool) ), this, SLOT( slotViewChanged() ) );
}
initMetaWidget();

0 comments on commit 358972f

Please sign in to comment.