summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/advancedfm/advancedfm.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp
index 3aa516c..ec475a4 100644
--- a/noncore/apps/advancedfm/advancedfm.cpp
+++ b/noncore/apps/advancedfm/advancedfm.cpp
@@ -320,12 +320,16 @@ void AdvancedFm::localListClicked(QListViewItem *selectedItem) {
320 strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem); 320 strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem);
321 currentDir.cd(strItem,FALSE); 321 currentDir.cd(strItem,FALSE);
322 populateLocalView(); 322 populateLocalView();
323 Local_View->ensureItemVisible(Local_View->firstChild());
324
323 } else { 325 } else {
324 currentDir.cdUp(); 326 currentDir.cdUp();
325 populateLocalView(); 327 populateLocalView();
328 Local_View->ensureItemVisible(Local_View->firstChild());
326 } 329 }
327 if(QDir(strItem).exists()){ 330 if(QDir(strItem).exists()){
328 currentDir.cd(strItem, TRUE); 331 currentDir.cd(strItem, TRUE);
332 Local_View->ensureItemVisible(Local_View->firstChild());
329 populateLocalView(); 333 populateLocalView();
330 } 334 }
331 } else { 335 } else {
@@ -339,7 +343,6 @@ void AdvancedFm::localListClicked(QListViewItem *selectedItem) {
339 } //end not symlink 343 } //end not symlink
340 chdir(strItem.latin1()); 344 chdir(strItem.latin1());
341 } 345 }
342 Local_View->ensureItemVisible(Local_View->firstChild());
343 346
344 } 347 }
345} 348}
@@ -360,13 +363,16 @@ void AdvancedFm::remoteListClicked(QListViewItem *selectedItem) {
360 strItem=QDir::cleanDirPath( currentRemoteDir.canonicalPath()+"/"+strItem); 363 strItem=QDir::cleanDirPath( currentRemoteDir.canonicalPath()+"/"+strItem);
361 currentRemoteDir.cd(strItem,FALSE); 364 currentRemoteDir.cd(strItem,FALSE);
362 populateRemoteView(); 365 populateRemoteView();
366 Remote_View->ensureItemVisible(Remote_View->firstChild());
363 } else { 367 } else {
364 currentRemoteDir.cdUp(); 368 currentRemoteDir.cdUp();
365 populateRemoteView(); 369 populateRemoteView();
370 Remote_View->ensureItemVisible(Remote_View->firstChild());
366 } 371 }
367 if(QDir(strItem).exists()){ 372 if(QDir(strItem).exists()){
368 currentRemoteDir.cd(strItem, TRUE); 373 currentRemoteDir.cd(strItem, TRUE);
369 populateRemoteView(); 374 populateRemoteView();
375 Remote_View->ensureItemVisible(Remote_View->firstChild());
370 } 376 }
371 } else { 377 } else {
372 strItem=QDir::cleanDirPath( currentRemoteDir.canonicalPath()+"/"+strItem); 378 strItem=QDir::cleanDirPath( currentRemoteDir.canonicalPath()+"/"+strItem);
@@ -379,7 +385,6 @@ void AdvancedFm::remoteListClicked(QListViewItem *selectedItem) {
379 } //end not symlink 385 } //end not symlink
380 chdir(strItem.latin1()); 386 chdir(strItem.latin1());
381 } 387 }
382 Remote_View->ensureItemVisible(Remote_View->firstChild());
383 } 388 }
384} 389}
385 390
@@ -780,7 +785,9 @@ void AdvancedFm::showFileMenu() {
780 m->insertSeparator(); 785 m->insertSeparator();
781 m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() )); 786 m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() ));
782 787
788#if defined(QT_QWS_OPIE)
783 m->insertItem( tr( "Properties" ), this, SLOT( doProperties() )); 789 m->insertItem( tr( "Properties" ), this, SLOT( doProperties() ));
790#endif
784 m->setCheckable(TRUE); 791 m->setCheckable(TRUE);
785 if (!b) 792 if (!b)
786 m->setItemChecked(m->idAt(0),TRUE); 793 m->setItemChecked(m->idAt(0),TRUE);