author | llornkcor <llornkcor> | 2004-09-26 01:49:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-26 01:49:06 (UTC) |
commit | 358c159e5d4f28eedfbd8e539e4420324c565eba (patch) (side-by-side diff) | |
tree | 59a1280ed80b8b2ebdcf38b90ead208bfd18b628 | |
parent | ff6c55833c0cba33469f668ca158e96b409b4967 (diff) | |
download | opie-358c159e5d4f28eedfbd8e539e4420324c565eba.zip opie-358c159e5d4f28eedfbd8e539e4420324c565eba.tar.gz opie-358c159e5d4f28eedfbd8e539e4420324c565eba.tar.bz2 |
fix view menu
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 0dc822d..9aa0c77 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -74,2 +74,4 @@ void AdvancedFm::tabChanged(QWidget *wd) { whichTab = 1; + viewMenu->setItemChecked(viewMenu->idAt(0), true); + viewMenu->setItemChecked(viewMenu->idAt(1), false); // qDebug("tabchanged: LOCAL VIEW SHOWN"); @@ -78,2 +80,4 @@ void AdvancedFm::tabChanged(QWidget *wd) { whichTab = 2; + viewMenu->setItemChecked(viewMenu->idAt(0), false); + viewMenu->setItemChecked(viewMenu->idAt(1), true); // qDebug("tabchanged: REMOTE VIEW SHOWN"); @@ -84,7 +88,3 @@ void AdvancedFm::tabChanged(QWidget *wd) { if ( TabWidget->currentWidget() == tab) { - viewMenu->setItemChecked(viewMenu->idAt(0), true); - viewMenu->setItemChecked(viewMenu->idAt(1), false); } else { - viewMenu->setItemChecked(viewMenu->idAt(0), false); - viewMenu->setItemChecked(viewMenu->idAt(1), true); } @@ -367,3 +367,3 @@ void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { - else if( e->key() == Key_Left ) + else if( e->key() == Key_Left ) upDir(); |