summaryrefslogtreecommitdiff
path: root/noncore/net
authorllornkcor <llornkcor>2002-03-31 02:00:57 (UTC)
committer llornkcor <llornkcor>2002-03-31 02:00:57 (UTC)
commit13da5064c21e124f2202310ac4c54cb3ddc8c0b1 (patch) (side-by-side diff)
treed95a8c039a1240aace32be1751382ea43b8c77cc /noncore/net
parent04158decf6fa76d966be178d07e1895336a47bd9 (diff)
downloadopie-13da5064c21e124f2202310ac4c54cb3ddc8c0b1.zip
opie-13da5064c21e124f2202310ac4c54cb3ddc8c0b1.tar.gz
opie-13da5064c21e124f2202310ac4c54cb3ddc8c0b1.tar.bz2
fixed some goofy crap I thought I fixed earlier with server combo and multiple entries. oh well. Also fixed single click going into a repopulate(bad when remote)
Diffstat (limited to 'noncore/net') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp33
1 files changed, 19 insertions, 14 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 3dda17e..e64fd73 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -135,3 +135,4 @@ OpieFtp::OpieFtp( )
Local_View->setSelectionMode(QListView::Extended);
- QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold);
+
+ QPEApplication::setStylusOperation( Local_View->viewport(),QPEApplication::RightOnHold);
@@ -320,3 +321,2 @@ void OpieFtp::newConnection()
TabWidget->setCurrentPage(2);
- currentServerConfig = -1;
}
@@ -434,4 +434,4 @@ void OpieFtp::localUpload()
nullifyCallBack();
- it.current()->setSelected(FALSE);
} //end currentSelected
+ it.current()->setSelected(FALSE);
}
@@ -488,4 +488,4 @@ void OpieFtp::remoteDownload()
nullifyCallBack();
- it.current()->setSelected(FALSE);
}
+ it.current()->setSelected(FALSE);
}
@@ -659,3 +659,3 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
if( selectedItem) {
- QCopEnvelope ( "QPE/System", "busy()" );
+// QCopEnvelope ( "QPE/System", "busy()" );
QString oldRemoteCurrentDir = currentRemoteDir;
@@ -688,6 +688,5 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
strItem="";
- qDebug("RemoteCurrentDir1 "+oldRemoteCurrentDir);
+// qDebug("RemoteCurrentDir1 "+oldRemoteCurrentDir);
}
} else if(strItem.find("/",0,TRUE) != -1) { // this is a directory
- qDebug("trying directory");
if( !remoteChDir( (const QString &)currentRemoteDir + strItem)) {
@@ -695,3 +694,3 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
strItem="";
- qDebug("RemoteCurrentDir1 "+oldRemoteCurrentDir);
+// qDebug("RemoteCurrentDir1 "+oldRemoteCurrentDir);
@@ -701,3 +700,4 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
} else {
- qDebug("download "+strItem);
+ QCopEnvelope ( "QPE/System", "notBusy()" );
+ return;
}
@@ -707,5 +707,5 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
currentRemoteDir +="/";
- currentPathCombo->lineEdit()->setText( currentRemoteDir );
- fillRemoteCombo( (const QString &)currentDir);
- QCopEnvelope ( "QPE/System", "notBusy()" );
+ currentPathCombo->lineEdit()->setText( currentRemoteDir);
+ fillRemoteCombo( (const QString &)currentRemoteDir);
+// QCopEnvelope ( "QPE/System", "notBusy()" );
}
@@ -729,2 +729,3 @@ void OpieFtp::localListClicked(QListViewItem *selectedItem)
if(strItem.find(". .",0,TRUE) && strItem.find("/",0,TRUE)!=-1 ) {
+
if(QDir(QDir::cleanDirPath(currentDir.canonicalPath()+"/"+strItem)).exists() ) {
@@ -745,2 +746,3 @@ void OpieFtp::localListClicked(QListViewItem *selectedItem)
// qDebug("upload "+strItem);
+ return;
}
@@ -1070,3 +1072,2 @@ void OpieFtp::writeConfig()
{
-
Config cfg("opieftp");
@@ -1076,2 +1077,7 @@ void OpieFtp::writeConfig()
if( currentServerConfig == -1) {
+ for (int i = 1; i <= numberOfEntries; i++) {
+ temp.setNum(i);
+ cfg.setGroup("Server");
+ QString tempStr = cfg.readEntry( temp,"");
+ }
@@ -1092,3 +1098,2 @@ void OpieFtp::writeConfig()
cfg.writeEntry("numberOfEntries", QString::number(numberOfEntries + 1 ));
-
}