summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-10-16 15:48:52 (UTC)
committer llornkcor <llornkcor>2002-10-16 15:48:52 (UTC)
commit0176ce245c348baf392dba790878458a5e39077f (patch) (side-by-side diff)
tree91665a3e143c14d3a785d1c660df88e2aafde9fc
parent321cea04e34658fde3de47c104682b5cefce6eeb (diff)
downloadopie-0176ce245c348baf392dba790878458a5e39077f.zip
opie-0176ce245c348baf392dba790878458a5e39077f.tar.gz
opie-0176ce245c348baf392dba790878458a5e39077f.tar.bz2
fix showhidden files handling
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp9
-rw-r--r--noncore/apps/advancedfm/advancedfmMenu.cpp18
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
@@ -726,14 +726,10 @@ void AdvancedFm::showFileMenu() {
MimeType mt( curApp );
-
const AppLnk* app = mt.application();
-
QFile fi(curApp);
-
QPopupMenu *m = new QPopupMenu(0);
QPopupMenu *n = new QPopupMenu(0);
// QPopupMenu *o = new QPopupMenu(0);
-
- m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() ));
+ m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showMenuHidden() ));
if ( QFileInfo(fi).isDir() ) {
@@ -746,6 +742,5 @@ void AdvancedFm::showFileMenu() {
+ app->name() ), this, SLOT( runThis() ) );
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
@@ -54,7 +54,10 @@ 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;
}
@@ -63,13 +66,12 @@ void AdvancedFm::showHidden() {
currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All);
fileMenu->setItemChecked( fileMenu->idAt(0),TRUE);
- b=FALSE;
+// b=FALSE;
} else {
currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All);
fileMenu->setItemChecked( fileMenu->idAt(0),FALSE);
- b=TRUE;
+// b=TRUE;
}
populateLocalView();
-
}
@@ -77,9 +79,9 @@ void AdvancedFm::showRemoteHidden() {
if (b) {
currentRemoteDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All);
- b=TRUE;
+// b=TRUE;
} else {
currentRemoteDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All);
- b=FALSE;
+// b=FALSE;
}
populateRemoteView();