author | llornkcor <llornkcor> | 2002-10-16 15:48:52 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-10-16 15:48:52 (UTC) |
commit | 0176ce245c348baf392dba790878458a5e39077f (patch) (unidiff) | |
tree | 91665a3e143c14d3a785d1c660df88e2aafde9fc | |
parent | 321cea04e34658fde3de47c104682b5cefce6eeb (diff) | |
download | opie-0176ce245c348baf392dba790878458a5e39077f.zip opie-0176ce245c348baf392dba790878458a5e39077f.tar.gz opie-0176ce245c348baf392dba790878458a5e39077f.tar.bz2 |
fix showhidden files handling
-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() { | |||
727 | MimeType mt( curApp ); | 727 | MimeType mt( curApp ); |
728 | |||
729 | const AppLnk* app = mt.application(); | 728 | const AppLnk* app = mt.application(); |
730 | |||
731 | QFile fi(curApp); | 729 | QFile fi(curApp); |
732 | |||
733 | QPopupMenu *m = new QPopupMenu(0); | 730 | QPopupMenu *m = new QPopupMenu(0); |
@@ -735,4 +732,3 @@ void AdvancedFm::showFileMenu() { | |||
735 | // QPopupMenu *o = new QPopupMenu(0); | 732 | // QPopupMenu *o = new QPopupMenu(0); |
736 | 733 | m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() )); | |
737 | m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); | ||
738 | 734 | ||
@@ -747,4 +743,3 @@ void AdvancedFm::showFileMenu() { | |||
747 | else if( QFileInfo(fi).isExecutable() ) //damn opie doesnt like this | 743 | else if( QFileInfo(fi).isExecutable() ) //damn opie doesnt like this |
748 | m->insertItem( /*Resource::loadPixmap( app->name()),*/ tr( "Execute" ), this, SLOT( runThis() ) ); | 744 | m->insertItem( tr( "Execute" ), this, SLOT( runThis() ) ); |
749 | |||
750 | m->insertItem( Resource::loadPixmap( "txt" ), tr( "Open as text" ),this, SLOT( runText() ) ); | 745 | 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() { | |||
55 | void AdvancedFm::showMenuHidden() { | 55 | void AdvancedFm::showMenuHidden() { |
56 | showHidden(); | 56 | if(TabWidget->currentPageIndex() == 0) |
57 | if(b) b= false; else b=true; | 57 | showHidden(); |
58 | showRemoteHidden(); | 58 | else |
59 | showRemoteHidden(); | ||
60 | // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); | ||
61 | if(b) b = false; else b = true; | ||
59 | } | 62 | } |
@@ -64,3 +67,3 @@ void AdvancedFm::showHidden() { | |||
64 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); | 67 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); |
65 | b=FALSE; | 68 | // b=FALSE; |
66 | 69 | ||
@@ -69,6 +72,5 @@ void AdvancedFm::showHidden() { | |||
69 | fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); | 72 | fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); |
70 | b=TRUE; | 73 | // b=TRUE; |
71 | } | 74 | } |
72 | populateLocalView(); | 75 | populateLocalView(); |
73 | |||
74 | } | 76 | } |
@@ -78,3 +80,3 @@ void AdvancedFm::showRemoteHidden() { | |||
78 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 80 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
79 | b=TRUE; | 81 | // b=TRUE; |
80 | 82 | ||
@@ -82,3 +84,3 @@ void AdvancedFm::showRemoteHidden() { | |||
82 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); | 84 | currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); |
83 | b=FALSE; | 85 | // b=FALSE; |
84 | } | 86 | } |