author | llornkcor <llornkcor> | 2002-03-18 01:56:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-18 01:56:12 (UTC) |
commit | 2ed59c2eb1694b3dda2ab709f54a4ad25a24c6cc (patch) (side-by-side diff) | |
tree | f14f5f50b091add26e880e6268bde46e836864af /noncore/net/opieftp | |
parent | c09cb25eb6bbf31bed0d4a415802469cfd1efedf (diff) | |
download | opie-2ed59c2eb1694b3dda2ab709f54a4ad25a24c6cc.zip opie-2ed59c2eb1694b3dda2ab709f54a4ad25a24c6cc.tar.gz opie-2ed59c2eb1694b3dda2ab709f54a4ad25a24c6cc.tar.bz2 |
added Portuguese translations from 'covarde_anonimo' on #opie
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 10 | ||||
-rw-r--r-- | noncore/net/opieftp/opieftp.pro | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index a3b29a1..814d706 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp @@ -488,5 +488,5 @@ void OpieFtp::populateLocalView() if(fileL !="./") { item = new QListViewItem( Local_View,fileL,fileS, fileDate); - if(isDir) + if(isDir || fileL.find("/",0,TRUE) != -1) item->setPixmap( 0, Resource::loadPixmap( "folder" )); else @@ -528,5 +528,5 @@ bool OpieFtp::populateRemoteView( ) if(fileL.find("total",0,TRUE) == -1) { QListViewItem * item = new QListViewItem( Remote_View, fileL, fileS, fileDate); - if(s.left(1) == "d") { + if(s.left(1) == "d" || fileL.find("/",0,TRUE) != -1) { item->setPixmap( 0, Resource::loadPixmap( "folder" )); if(itemDir) @@ -696,6 +696,6 @@ void OpieFtp::showRemoteMenu(QListViewItem * item) { QPopupMenu m;// = new QPopupMenu( Local_View ); - if(item->text(0).right(1) == "/") - m.insertItem( tr( "Change Directory" ), this, SLOT( doRemoteCd() )); + if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE)) + m.insertItem( tr( "Change Directory" ), this, SLOT( doRemoteCd() )); else m.insertItem( tr( "Download" ), this, SLOT( remoteDownload() )); @@ -712,5 +712,5 @@ void OpieFtp::showLocalMenu(QListViewItem * item) m.insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); m.insertSeparator(); - if(item->text(0).right(1) == "/") + if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE)) m.insertItem( tr( "Change Directory" ), this, SLOT( doLocalCd() )); else diff --git a/noncore/net/opieftp/opieftp.pro b/noncore/net/opieftp/opieftp.pro index b4d0b4c..f485cdf 100644 --- a/noncore/net/opieftp/opieftp.pro +++ b/noncore/net/opieftp/opieftp.pro @@ -10,2 +10,3 @@ DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe +TRANSLATIONS = ../../i18n/pt_BR/opieftp.ts |