author | llornkcor <llornkcor> | 2002-05-05 18:15:48 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-05 18:15:48 (UTC) |
commit | 5549afd820c485db5ec70ad5bf1faed5821ab04a (patch) (unidiff) | |
tree | fd8372f9928c9b8c556b4d03229e80f3e73cb31f | |
parent | 4cd02e41953be5b271c877197cf9c12ad4785bef (diff) | |
download | opie-5549afd820c485db5ec70ad5bf1faed5821ab04a.zip opie-5549afd820c485db5ec70ad5bf1faed5821ab04a.tar.gz opie-5549afd820c485db5ec70ad5bf1faed5821ab04a.tar.bz2 |
bug fix
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index f4ca349..b9e254e 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -537,3 +537,6 @@ void AdvancedFm::localListClicked(QListViewItem *selectedItem) | |||
537 | if( QFile::exists(strItem ) ) { | 537 | if( QFile::exists(strItem ) ) { |
538 | // qDebug("upload "+strItem); | 538 | qDebug("clicked item "+strItem); |
539 | DocLnk doc( strItem, FALSE ); | ||
540 | doc.execute(); | ||
541 | // Local_View->clearSelection(); | ||
539 | } | 542 | } |
@@ -575,3 +578,6 @@ void AdvancedFm::remoteListClicked(QListViewItem *selectedItem) | |||
575 | if( QFile::exists(strItem ) ) { | 578 | if( QFile::exists(strItem ) ) { |
576 | // qDebug("upload "+strItem); | 579 | qDebug("clicked item "+strItem); |
580 | DocLnk doc( strItem, FALSE ); | ||
581 | doc.execute(); | ||
582 | // Remote_View->clearSelection(); | ||
577 | } | 583 | } |
@@ -663,3 +669,3 @@ void AdvancedFm::showLocalMenu(QListViewItem * item) | |||
663 | else | 669 | else |
664 | m.insertItem( tr( "Open" ), this, SLOT( runThis() )); | 670 | m.insertItem( tr( "Open / Execute" ), this, SLOT( runThis() )); |
665 | m.insertItem( tr( "Open as Text" ), this, SLOT( runText() )); | 671 | m.insertItem( tr( "Open as Text" ), this, SLOT( runText() )); |
@@ -699,3 +705,3 @@ void AdvancedFm::showRemoteMenu(QListViewItem * item) | |||
699 | else | 705 | else |
700 | m.insertItem( tr( "Open" ), this, SLOT( runThis() )); | 706 | m.insertItem( tr( "Open / Execute" ), this, SLOT( runThis() )); |
701 | m.insertItem( tr( "Open as Text" ), this, SLOT( runText() )); | 707 | m.insertItem( tr( "Open as Text" ), this, SLOT( runText() )); |
@@ -1039,2 +1045,9 @@ void AdvancedFm::filePerms() { | |||
1039 | } | 1045 | } |
1046 | if (TabWidget->currentPageIndex() == 0) { | ||
1047 | populateLocalView(); | ||
1048 | } else { | ||
1049 | populateRemoteView(); | ||
1050 | } | ||
1051 | |||
1052 | |||
1040 | } | 1053 | } |
@@ -1404,6 +1417,6 @@ void AdvancedFm::runCommandStd() { | |||
1404 | if( Local_View->currentItem()) | 1417 | if( Local_View->currentItem()) |
1405 | curFile = currentDir.canonicalPath() + Local_View->currentItem()->text(0); | 1418 | curFile = currentDir.canonicalPath() +"/"+ Local_View->currentItem()->text(0); |
1406 | } else { | 1419 | } else { |
1407 | if(Remote_View->currentItem()) | 1420 | if(Remote_View->currentItem()) |
1408 | curFile = currentRemoteDir.canonicalPath() + Remote_View->currentItem()->text(0); | 1421 | curFile = currentRemoteDir.canonicalPath() +"/"+ Remote_View->currentItem()->text(0); |
1409 | } | 1422 | } |
@@ -1558,3 +1571,5 @@ void AdvancedFm::mkSym() { | |||
1558 | QString destName = currentRemoteDir.canonicalPath()+"/"+(*it); | 1571 | QString destName = currentRemoteDir.canonicalPath()+"/"+(*it); |
1572 | if(destName.right(1) == "/") destName = destName.left( destName.length() -1); | ||
1559 | QString curFile = currentDir.canonicalPath()+"/"+(*it); | 1573 | QString curFile = currentDir.canonicalPath()+"/"+(*it); |
1574 | if( curFile.right(1) == "/") curFile = curFile.left( curFile.length() -1); | ||
1560 | cmd = "ln -s "+curFile+" "+destName; | 1575 | cmd = "ln -s "+curFile+" "+destName; |
@@ -1569,3 +1584,5 @@ void AdvancedFm::mkSym() { | |||
1569 | QString destName = currentDir.canonicalPath()+"/"+(*it); | 1584 | QString destName = currentDir.canonicalPath()+"/"+(*it); |
1585 | if(destName.right(1) == "/") destName = destName.left( destName.length() -1); | ||
1570 | QString curFile = currentRemoteDir.canonicalPath()+"/"+(*it); | 1586 | QString curFile = currentRemoteDir.canonicalPath()+"/"+(*it); |
1587 | if( curFile.right(1) == "/") curFile = curFile.left( curFile.length() -1); | ||
1571 | 1588 | ||