author | llornkcor <llornkcor> | 2003-02-24 04:08:24 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-02-24 04:08:24 (UTC) |
commit | d5746c625ebf540711179ef01a7bb99bc3b2c3d6 (patch) (side-by-side diff) | |
tree | 6fc93d296422f38e1beb27828b5b0b1dc3cf497c | |
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 | 1 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 5 |
3 files changed, 17 insertions, 8 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 @@ -73,12 +73,10 @@ AdvancedFm::AdvancedFm( ) init(); renameBox = 0; initConnections(); - TabWidget->setCurrentTab(1); - populateView(); - TabWidget->setCurrentTab(0); - populateView(); + whichTab=1; + rePopulate(); currentPathCombo->setFocus(); } AdvancedFm::~AdvancedFm() { @@ -116,9 +114,8 @@ void AdvancedFm::tabChanged(QWidget *w) setCaption("AdvancedFm :: "+fs+" :: " +checkDiskSpace( (const QString &) path )+ " kB free" ); chdir( path.latin1()); -//2 populateView(); } void AdvancedFm::populateView() @@ -242,8 +239,20 @@ void AdvancedFm::populateView() thisView->setSorting( 3,FALSE); fillCombo( (const QString &) path ); } +void AdvancedFm::rePopulate() +{ + int tmpTab = whichTab; + qDebug("%d", tmpTab); + + for(int i =1; i < 3; i++) + { + TabWidget->setCurrentTab(i - 1); + populateView(); + } + TabWidget->setCurrentTab( tmpTab - 1); +} void AdvancedFm::ListClicked(QListViewItem *selectedItem) { if(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 @@ -63,8 +63,9 @@ protected slots: void mkDir(); void del(); void rn(); void populateView(); + void rePopulate(); void showHidden(); void showMenuHidden(); void writeConfig(); void readConfig(); 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 @@ -67,10 +67,9 @@ void AdvancedFm::showMenuHidden() OtherDir()->setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); // b=TRUE; } - populateView(); -// populateRemoteView(); + rePopulate(); // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); if(b) b = false; else b = true; } @@ -90,9 +89,9 @@ void AdvancedFm::showHidden() OtherDir()->setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All); // fileMenu->setItemChecked( fileMenu->idAt(0),FALSE); // b=TRUE; } - populateView(); + rePopulate(); } QString AdvancedFm::dealWithSymName(const QString &fileName) { |