Diffstat (limited to 'noncore/apps/advancedfm/advancedfmMenu.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
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 | |||
@@ -44,52 +44,54 @@ | |||
44 | #include <dirent.h> | 44 | #include <dirent.h> |
45 | 45 | ||
46 | 46 | ||
47 | void AdvancedFm::doLocalCd() { | 47 | void AdvancedFm::doLocalCd() { |
48 | localListClicked( Local_View->currentItem()); | 48 | localListClicked( Local_View->currentItem()); |
49 | } | 49 | } |
50 | 50 | ||
51 | void AdvancedFm::doRemoteCd() { | 51 | void AdvancedFm::doRemoteCd() { |
52 | localListClicked( Remote_View->currentItem()); | 52 | localListClicked( Remote_View->currentItem()); |
53 | } | 53 | } |
54 | 54 | ||
55 | void AdvancedFm::showMenuHidden() { | 55 | void AdvancedFm::showMenuHidden() { |
56 | if(TabWidget->currentPageIndex() == 0) | ||
56 | showHidden(); | 57 | showHidden(); |
57 | if(b) b= false; else b=true; | 58 | else |
58 | showRemoteHidden(); | 59 | showRemoteHidden(); |
60 | // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); | ||
61 | if(b) b = false; else b = true; | ||
59 | } | 62 | } |
60 | 63 | ||
61 | void AdvancedFm::showHidden() { | 64 | void AdvancedFm::showHidden() { |
62 | if (b) { | 65 | if (b) { |
63 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); | 66 | currentDir.setFilter( QDir::Files | QDir::Dirs | QDir::Hidden | QDir::All); |
64 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); | 67 | fileMenu->setItemChecked( fileMenu->idAt(0),TRUE); |
65 | b=FALSE; | 68 | // b=FALSE; |
66 | 69 | ||
67 | } else { | 70 | } else { |
68 | currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); | 71 | currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); |
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 | } |
75 | 77 | ||
76 | void AdvancedFm::showRemoteHidden() { | 78 | void AdvancedFm::showRemoteHidden() { |
77 | if (b) { | 79 | if (b) { |
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 | ||
81 | } else { | 83 | } else { |
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 | } |
85 | populateRemoteView(); | 87 | populateRemoteView(); |
86 | } | 88 | } |
87 | 89 | ||
88 | void AdvancedFm::runThis() { | 90 | void AdvancedFm::runThis() { |
89 | QString fs; | 91 | QString fs; |
90 | if (TabWidget->currentPageIndex() == 0) { | 92 | if (TabWidget->currentPageIndex() == 0) { |
91 | QString curFile = Local_View->currentItem()->text(0); | 93 | QString curFile = Local_View->currentItem()->text(0); |
92 | if(curFile != "../") { | 94 | if(curFile != "../") { |
93 | 95 | ||
94 | fs= getFileSystemType((const QString &) currentDir.canonicalPath()); | 96 | fs= getFileSystemType((const QString &) currentDir.canonicalPath()); |
95 | QFileInfo fileInfo( currentDir.canonicalPath()+"/"+curFile); | 97 | QFileInfo fileInfo( currentDir.canonicalPath()+"/"+curFile); |