-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 9 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 18 |
2 files changed, 12 insertions, 15 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index b6e7a30..f23fd86 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -727,7 +727,4 @@ void AdvancedFm::showFileMenu() { MimeType mt( curApp ); - const AppLnk* app = mt.application(); - QFile fi(curApp); - QPopupMenu *m = new QPopupMenu(0); @@ -735,4 +732,3 @@ void AdvancedFm::showFileMenu() { // QPopupMenu *o = new QPopupMenu(0); - - m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); + m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() )); @@ -747,4 +743,3 @@ void AdvancedFm::showFileMenu() { else if( QFileInfo(fi).isExecutable() ) //damn opie doesnt like this - m->insertItem( /*Resource::loadPixmap( app->name()),*/ tr( "Execute" ), this, SLOT( runThis() ) ); - + m->insertItem( tr( "Execute" ), this, SLOT( runThis() ) ); m->insertItem( Resource::loadPixmap( "txt" ), tr( "Open as text" ),this, SLOT( runText() ) ); diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 6d37904..5fa8d0c 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -55,5 +55,8 @@ void AdvancedFm::doRemoteCd() { void AdvancedFm::showMenuHidden() { - showHidden(); - if(b) b= false; else b=true; - showRemoteHidden(); + if(TabWidget->currentPageIndex() == 0) + showHidden(); + else + showRemoteHidden(); +// if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); + if(b) b = false; else b = true; } @@ -64,3 +67,3 @@ void AdvancedFm::showHidden() { fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); - b=FALSE; +// b=FALSE; @@ -69,6 +72,5 @@ void AdvancedFm::showHidden() { fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); - b=TRUE; +// b=TRUE; } populateLocalView(); - } @@ -78,3 +80,3 @@ void AdvancedFm::showRemoteHidden() { currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); - b=TRUE; +// b=TRUE; @@ -82,3 +84,3 @@ void AdvancedFm::showRemoteHidden() { currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); - b=FALSE; +// b=FALSE; } |