-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 31 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.h | 1 |
2 files changed, 4 insertions, 28 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 3bfec7d..3cd2067 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp @@ -344,3 +344,3 @@ QStringList AdvancedFm::getPath() { -void AdvancedFm::changeTo(QString dir) { +void AdvancedFm::changeTo(const QString dir) { chdir( dir.latin1()); @@ -701,3 +701,3 @@ void AdvancedFm::gotoCustomDir(const QString &dir) { } else { - gotoDirectory( dir); + changeTo( dir); // if(QDir( curDir).exists() ) @@ -768,3 +768,3 @@ void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { stream >> file; - gotoDirectory( (const QString &) file); + changeTo( (const QString &) file); } @@ -773,3 +773,3 @@ void AdvancedFm::qcopReceive(const QCString &msg, const QByteArray &data) { void AdvancedFm::setDocument(const QString &file) { - gotoDirectory( file); + changeTo( file); @@ -777,25 +777,2 @@ void AdvancedFm::setDocument(const QString &file) { -void AdvancedFm::gotoDirectory(const QString &file) { -// qDebug("goto dir "+file); - QString curDir = file; - QDir *thisDir = CurrentDir(); - if(QDir( curDir).exists() ) { - thisDir->setPath( curDir ); - chdir( curDir.latin1() ); - thisDir->cd( curDir, TRUE); - populateView(); - } - else if(QFileInfo(curDir).exists()) { - QFileInfo fileInfo(curDir); - curDir=fileInfo.dirPath(); - if(QDir( curDir).exists() ) { - thisDir->setPath( curDir ); - chdir( curDir.latin1() ); - thisDir->cd( curDir, TRUE); - populateView(); - } - findFile(file); - } - -} diff --git a/noncore/apps/advancedfm/advancedfm.h b/noncore/apps/advancedfm/advancedfm.h index 9dbdc70..00ab909 100644 --- a/noncore/apps/advancedfm/advancedfm.h +++ b/noncore/apps/advancedfm/advancedfm.h @@ -179,3 +179,2 @@ private: void removeCustomDir(); - void gotoDirectory(const QString &); void navigateToSelected(); |