Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 7 additions and 4 deletions.
  1. +7 −4 src-qt4/pc-pkgmanager/mainWin.cpp
View
11 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();

No commit comments for this range

Something went wrong with that request. Please try again.