author | llornkcor <llornkcor> | 2002-04-25 18:23:16 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-25 18:23:16 (UTC) |
commit | a4e419f939f4f4237b56e117edaa7dc0d93dd396 (patch) (side-by-side diff) | |
tree | 3d6914ab34e11e9d4de1d2c4c7e56096c1845d6c | |
parent | 42cb3d115a46637f4c46f4b3f3821075a2c18f02 (diff) | |
download | opie-a4e419f939f4f4237b56e117edaa7dc0d93dd396.zip opie-a4e419f939f4f4237b56e117edaa7dc0d93dd396.tar.gz opie-a4e419f939f4f4237b56e117edaa7dc0d93dd396.tar.bz2 |
changed bool to reflect new gizmo thingymabobber
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 4289fcf..5f47b9b 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -205,14 +205,14 @@ AdvancedFm::AdvancedFm( ) currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); currentDir.setPath( QDir::currentDirPath()); currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); currentRemoteDir.setPath( QDir::currentDirPath()); -b = TRUE; - currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); + b = TRUE; + currentPathCombo = new QComboBox( FALSE, this, "currentPathCombo" ); currentPathCombo->setEditable(TRUE); layout->addMultiCellWidget( currentPathCombo, 3, 3, 0, 6); currentPathCombo->lineEdit()->setText( currentDir.canonicalPath()); connect( currentPathCombo, SIGNAL( activated( const QString & ) ), this, SLOT( currentPathComboActivated( const QString & ) ) ); @@ -559,13 +559,13 @@ void AdvancedFm::doRemoteCd() { localListClicked( Remote_View->currentItem()); } void AdvancedFm::showHidden() { - if (!b) { + if (b) { currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); // localMenu->setItemChecked(localMenu->idAt(0),TRUE); // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); b=TRUE; } else { @@ -576,13 +576,13 @@ void AdvancedFm::showHidden() } populateLocalView(); } void AdvancedFm::showRemoteHidden() { - if (!b) { + if (b) { currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); // viewMenu->setItemChecked(localMenu->idAt(0),TRUE); // currentDir.setSorting(/* QDir::Size*/ /*| QDir::Reversed | */QDir::DirsFirst); b=TRUE; } else { @@ -640,13 +640,13 @@ void AdvancedFm::showLocalMenu(QListViewItem * item) m.insertSeparator(); m.insertItem( tr( "Delete" ), this, SLOT( localDelete() )); m.insertSeparator(); m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); m.setCheckable(TRUE); - if (b) + if (!b) m.setItemChecked(m.idAt(0),TRUE); else m.setItemChecked(m.idAt(0),FALSE); m.exec( QCursor::pos() ); } } @@ -673,13 +673,13 @@ void AdvancedFm::showRemoteMenu(QListViewItem * item) m.insertSeparator(); m.insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); m.insertSeparator(); m.insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); m.insertItem( tr( "Properties" ), this, SLOT( doProperties() )); m.setCheckable(TRUE); - if (b) + if (!b) m.setItemChecked(m.idAt(0),TRUE); else m.setItemChecked(m.idAt(0),FALSE); m.exec( QCursor::pos() ); } } |