Diffstat (limited to 'noncore/apps/advancedfm/advancedfmMenu.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 76 |
1 files changed, 28 insertions, 48 deletions
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 13dad33..c553017 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp @@ -70,4 +70,4 @@ void AdvancedFm::showMenuHidden() } - populateLocalView(); - populateRemoteView(); + populateView(); +// populateRemoteView(); // if(b) qDebug("<<<<<<<<<<<<<<<<<<<<<<<<<<<< true"); @@ -91,3 +91,3 @@ void AdvancedFm::showHidden() } - PopulateView(); + populateView(); } @@ -167,3 +167,3 @@ void AdvancedFm::makeDir() } - PopulateView(); + populateView(); } @@ -216,3 +216,3 @@ void AdvancedFm::doDelete() startProcess( (const QString)cmd.latin1() ); - PopulateView(); + populateView(); } @@ -240,3 +240,3 @@ void AdvancedFm::doDelete() } - PopulateView(); + populateView(); } @@ -259,3 +259,3 @@ void AdvancedFm::filePerms() } - PopulateView(); + populateView(); } @@ -295,3 +295,3 @@ void AdvancedFm::upDir() - PopulateView(); + populateView(); update(); @@ -362,5 +362,4 @@ void AdvancedFm::copy() } - - PopulateView(); -// TabWidget->setCurrentTab(1); + setOtherTabCurrent(); + populateView(); } @@ -419,3 +418,4 @@ void AdvancedFm::copyAs() } - PopulateView(); + setOtherTabCurrent(); + populateView(); } @@ -472,3 +472,3 @@ void AdvancedFm::copySameDir() } - PopulateView(); + populateView(); } @@ -514,4 +514,5 @@ void AdvancedFm::move() } - populateRemoteView(); - populateLocalView(); + setOtherTabCurrent(); + populateView(); +// populateLocalView(); } @@ -645,26 +646,5 @@ void AdvancedFm::mkSym() { - if ( whichTab == 1) - { - for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) - { + QDir *thisDir = CurrentDir(); + QDir * thatDir = OtherDir(); - QString destName = currentRemoteDir.canonicalPath()+"/"+(*it); - if(destName.right(1) == "/") - { - destName = destName.left( destName.length() -1); - } - QString curFile = currentDir.canonicalPath()+"/"+(*it); - if( curFile.right(1) == "/") - { - curFile = curFile.left( curFile.length() -1); - } - cmd = "ln -s "+curFile+" "+destName; - qDebug(cmd); - startProcess( (const QString)cmd ); - } - populateRemoteView(); - TabWidget->setCurrentTab(1); - } - else - { for ( QStringList::Iterator it = curFileList.begin(); it != curFileList.end(); ++it ) @@ -672,3 +652,3 @@ void AdvancedFm::mkSym() - QString destName = currentDir.canonicalPath()+"/"+(*it); + QString destName = thatDir->canonicalPath()+"/"+(*it); if(destName.right(1) == "/") @@ -677,3 +657,5 @@ void AdvancedFm::mkSym() } - QString curFile = currentRemoteDir.canonicalPath()+"/"+(*it); + + QString curFile = thisDir->canonicalPath()+"/"+(*it); + if( curFile.right(1) == "/") @@ -687,5 +669,4 @@ void AdvancedFm::mkSym() } - populateLocalView(); - TabWidget->setCurrentTab(0); - } + setOtherTabCurrent(); + populateView(); } @@ -701,3 +682,2 @@ void AdvancedFm::doBeam() { - QStringList curFileList = getPath(); @@ -757,4 +737,4 @@ void AdvancedFm::processEnded() { - populateLocalView(); - populateRemoteView(); +// populateLocalView(); + populateView(); } @@ -845,3 +825,3 @@ void AdvancedFm::renameIt() doRename( thisView ); - PopulateView(); + populateView(); } @@ -867,3 +847,3 @@ void AdvancedFm::okRename() delete view->currentItem(); - PopulateView(); + populateView(); } |