summaryrefslogtreecommitdiff
Side-by-side diff
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
@@ -319,14 +319,18 @@ void AdvancedFm::localListClicked(QListViewItem *selectedItem) {
if(QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem)).exists() ) {
strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem);
currentDir.cd(strItem,FALSE);
populateLocalView();
+ Local_View->ensureItemVisible(Local_View->firstChild());
+
} else {
currentDir.cdUp();
populateLocalView();
+ Local_View->ensureItemVisible(Local_View->firstChild());
}
if(QDir(strItem).exists()){
currentDir.cd(strItem, TRUE);
+ Local_View->ensureItemVisible(Local_View->firstChild());
populateLocalView();
}
} else {
strItem=QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem);
@@ -338,9 +342,8 @@ void AdvancedFm::localListClicked(QListViewItem *selectedItem) {
}
} //end not symlink
chdir(strItem.latin1());
}
- Local_View->ensureItemVisible(Local_View->firstChild());
}
}
@@ -359,15 +362,18 @@ void AdvancedFm::remoteListClicked(QListViewItem *selectedItem) {
if(QDir(QDir::cleanDirPath( currentRemoteDir.canonicalPath()+"/"+strItem)).exists() ) {
strItem=QDir::cleanDirPath( currentRemoteDir.canonicalPath()+"/"+strItem);
currentRemoteDir.cd(strItem,FALSE);
populateRemoteView();
+ Remote_View->ensureItemVisible(Remote_View->firstChild());
} else {
currentRemoteDir.cdUp();
populateRemoteView();
+ Remote_View->ensureItemVisible(Remote_View->firstChild());
}
if(QDir(strItem).exists()){
currentRemoteDir.cd(strItem, TRUE);
populateRemoteView();
+ Remote_View->ensureItemVisible(Remote_View->firstChild());
}
} else {
strItem=QDir::cleanDirPath( currentRemoteDir.canonicalPath()+"/"+strItem);
if( QFile::exists(strItem ) ) {
@@ -378,9 +384,8 @@ void AdvancedFm::remoteListClicked(QListViewItem *selectedItem) {
}
} //end not symlink
chdir(strItem.latin1());
}
- Remote_View->ensureItemVisible(Remote_View->firstChild());
}
}
@@ -779,9 +784,11 @@ void AdvancedFm::showFileMenu() {
m->insertSeparator();
m->insertItem( tr( "Set Permissions" ), this, SLOT( filePerms() ));
+#if defined(QT_QWS_OPIE)
m->insertItem( tr( "Properties" ), this, SLOT( doProperties() ));
+#endif
m->setCheckable(TRUE);
if (!b)
m->setItemChecked(m->idAt(0),TRUE);
else