summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index aa4314a..817943b 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -43,5 +43,4 @@ using namespace Opie::Core;
#include <qlistbox.h>
#include <qvbox.h>
-
/* STD */
#include <unistd.h>
@@ -303,8 +302,6 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl)
TabWidget->insertTab( tab_3, tr( "Config" ) );
-#if 0
connect(TabWidget,SIGNAL(currentChanged(QWidget*)),
this,SLOT(tabChanged(QWidget*)));
-#endif
currentDir.setFilter( QDir::Files | QDir::Dirs/* | QDir::Hidden*/ | QDir::All);
@@ -318,5 +315,4 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl)
currentPathCombo->lineEdit()->setText( currentDir.canonicalPath());
-#if 0
connect( currentPathCombo, SIGNAL( activated(const QString&) ),
this, SLOT( currentPathComboActivated(const QString&) ) );
@@ -324,5 +320,4 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl)
connect( currentPathCombo->lineEdit(),SIGNAL(returnPressed()),
this,SLOT(currentPathComboChanged()));
-#endif
ProgressBar = new QProgressBar( view, "ProgressBar" );
layout->addMultiCellWidget( ProgressBar, 4, 4, 0, 4);
@@ -330,7 +325,5 @@ OpieFtp::OpieFtp( QWidget* parent, const char* name, WFlags fl)
filterStr="*";
b=FALSE;
-#if 0
populateLocalView();
-#endif
readConfig();
@@ -668,5 +661,5 @@ void OpieFtp::populateLocalView()
if (fi->isSymLink() ){
QString symLink=fi->readLink();
- odebug << "Symlink detected "+symLink << oendl;
+// odebug << "Symlink detected "+symLink << oendl;
QFileInfo sym( symLink);
fileS.sprintf( "%10i", sym.size() );
@@ -674,5 +667,5 @@ void OpieFtp::populateLocalView()
fileDate = sym.lastModified().toString();
} else {
- odebug << "Not a dir: "+currentDir.canonicalPath()+fileL << oendl;
+// odebug << "Not a dir: "+currentDir.canonicalPath()+fileL << oendl;
fileS.sprintf( "%10i", fi->size() );
fileL.sprintf( "%s",fi->fileName().data() );
@@ -681,7 +674,9 @@ void OpieFtp::populateLocalView()
fileL+="/";
isDir=TRUE;
- odebug << fileL << oendl;
+// odebug << fileL << oendl;
}
}
+
+
if(fileL !="./" && fi->exists()) {
item = new QListViewItem( Local_View,fileL, fileDate, fileS );
@@ -719,5 +714,5 @@ void OpieFtp::populateLocalView()
Local_View->setSorting( 3,FALSE);
currentPathCombo->lineEdit()->setText( currentDir.canonicalPath() );
- fillCombo( (const QString &)currentDir);
+ // fillCombo( (const QString &)currentDir);
}
@@ -1146,13 +1141,18 @@ void OpieFtp::currentPathComboActivated(const QString & currentPath) {
void OpieFtp::fillCombo(const QString &currentPath) {
-
+ qDebug("Fill Combo "+currentPath);
currentPathCombo->lineEdit()->setText(currentPath);
+
if( localDirPathStringList.grep(currentPath,TRUE).isEmpty() ) {
+ qDebug("Clearing local");
currentPathCombo->clear();
localDirPathStringList.prepend(currentPath );
currentPathCombo->insertStringList( localDirPathStringList,-1);
}
+
currentPathCombo->lineEdit()->setText(currentPath);
- if( remoteDirPathStringList.grep(currentPath,TRUE).isEmpty() ) {
+
+ if( remoteDirPathStringList.grep(currentPath,TRUE).isEmpty() ) {
+ qDebug("Clearing remote");
currentPathCombo->clear();
remoteDirPathStringList.prepend(currentPath );
@@ -1288,4 +1288,5 @@ void OpieFtp::fillCombos()
{
clearCombos();
+ qDebug("did we get here yet?");
Config cfg("opieftp");