author | llornkcor <llornkcor> | 2003-02-24 04:08:24 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-02-24 04:08:24 (UTC) |
commit | d5746c625ebf540711179ef01a7bb99bc3b2c3d6 (patch) (unidiff) | |
tree | 6fc93d296422f38e1beb27828b5b0b1dc3cf497c /noncore/apps/advancedfm | |
parent | 009b85e8daa341d4a2fc62404f4a58715e775b86 (diff) | |
download | opie-d5746c625ebf540711179ef01a7bb99bc3b2c3d6.zip opie-d5746c625ebf540711179ef01a7bb99bc3b2c3d6.tar.gz opie-d5746c625ebf540711179ef01a7bb99bc3b2c3d6.tar.bz2 |
fix hidden again
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 19 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 3 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 5 |
3 files changed, 18 insertions, 9 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index d56e746..bb7f346 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -75,8 +75,6 @@ AdvancedFm::AdvancedFm( ) | |||
75 | 75 | ||
76 | initConnections(); | 76 | initConnections(); |
77 | TabWidget->setCurrentTab(1); | 77 | whichTab=1; |
78 | populateView(); | 78 | rePopulate(); |
79 | TabWidget->setCurrentTab(0); | ||
80 | populateView(); | ||
81 | currentPathCombo->setFocus(); | 79 | currentPathCombo->setFocus(); |
82 | } | 80 | } |
@@ -118,5 +116,4 @@ void AdvancedFm::tabChanged(QWidget *w) | |||
118 | +checkDiskSpace( (const QString &) path )+ " kB free" ); | 116 | +checkDiskSpace( (const QString &) path )+ " kB free" ); |
119 | chdir( path.latin1()); | 117 | chdir( path.latin1()); |
120 | //2populateView(); | ||
121 | } | 118 | } |
122 | 119 | ||
@@ -244,4 +241,16 @@ void AdvancedFm::populateView() | |||
244 | } | 241 | } |
245 | 242 | ||
243 | void AdvancedFm::rePopulate() | ||
244 | { | ||
245 | int tmpTab = whichTab; | ||
246 | qDebug("%d", tmpTab); | ||
247 | |||
248 | for(int i =1; i < 3; i++) | ||
249 | { | ||
250 | TabWidget->setCurrentTab(i - 1); | ||
251 | populateView(); | ||
252 | } | ||
253 | TabWidget->setCurrentTab( tmpTab - 1); | ||
254 | } | ||
246 | 255 | ||
247 | void AdvancedFm::ListClicked(QListViewItem *selectedItem) | 256 | void AdvancedFm::ListClicked(QListViewItem *selectedItem) |
diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 024ab29..3250a66 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h | |||
@@ -65,4 +65,5 @@ protected slots: | |||
65 | void rn(); | 65 | void rn(); |
66 | void populateView(); | 66 | void populateView(); |
67 | void rePopulate(); | ||
67 | void showHidden(); | 68 | void showHidden(); |
68 | void showMenuHidden(); | 69 | void showMenuHidden(); |
@@ -121,5 +122,5 @@ protected: | |||
121 | QString dealWithSymName(const QString &); | 122 | QString dealWithSymName(const QString &); |
122 | QDir *CurrentDir(); | 123 | QDir *CurrentDir(); |
123 | QDir *OtherDir(); | 124 | QDir *OtherDir(); |
124 | QListView *CurrentView(); | 125 | QListView *CurrentView(); |
125 | QListView *OtherView(); | 126 | QListView *OtherView(); |
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index f46503c..a82d69a 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -69,6 +69,5 @@ void AdvancedFm::showMenuHidden() | |||
69 | // b=TRUE; | 69 | // b=TRUE; |
70 | } | 70 | } |
71 | populateView(); | 71 | rePopulate(); |
72 | // populateRemoteView(); | ||
73 | // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); | 72 | // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); |
74 | if(b) b = false; else b = true; | 73 | if(b) b = false; else b = true; |
@@ -92,5 +91,5 @@ void AdvancedFm::showHidden() | |||
92 | // b=TRUE; | 91 | // b=TRUE; |
93 | } | 92 | } |
94 | populateView(); | 93 | rePopulate(); |
95 | } | 94 | } |
96 | 95 | ||