summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp24
1 files changed, 18 insertions, 6 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index 7ca3fff..293c391 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -300,3 +300,3 @@ OpieFtp::OpieFtp( )
-// fillCombos();
+ fillCombos();
@@ -305,3 +305,5 @@ OpieFtp::OpieFtp( )
populateLocalView();
- readConfig();
+qDebug("read COnfig");
+ readConfig();
+ qDebug("Set current item");
ServerComboBox->setCurrentItem(currentServerConfig);
@@ -433,3 +435,4 @@ void OpieFtp::connector()
setCaption(ftp_host);
- writeConfig();
+ if( currentServerConfig == -1)
+ writeConfig();
connectServerBtn->setText( tr("Disconnect"));
@@ -1147,2 +1150,3 @@ void OpieFtp::readConfig()
currentServerConfig = cfg.readNumEntry("currentServer", -1);
+
// qDebug("Reading %d", currentServerConfig);
@@ -1172,2 +1176,3 @@ void OpieFtp::writeConfig()
cfg.writeEntry( temp, ServerComboBox->currentText() +":"+PortSpinBox->cleanText() );
+ cfg.writeEntry("currentServer", numberOfEntries+1);
cfg.setGroup(temp);
@@ -1178,2 +1183,3 @@ void OpieFtp::writeConfig()
cfg.writeEntry("numberOfEntries", QString::number(numberOfEntries + 1 ));
+
}
@@ -1189,4 +1195,6 @@ void OpieFtp::fillCombos()
temp.setNum(i);
+ qDebug(temp);
cfg.setGroup("Server");
remoteServerStr = cfg.readEntry( temp,"");
+ qDebug( remoteServerStr);
int divider = remoteServerStr.length() - remoteServerStr.find(":",0,TRUE);
@@ -1197,2 +1205,3 @@ void OpieFtp::fillCombos()
remoteServerStr = remoteServerStr.left(remoteServerStr.length()-divider);
+ qDebug( remoteServerStr);
ServerComboBox->insertItem( remoteServerStr );
@@ -1225,4 +1234,5 @@ void OpieFtp::serverComboSelected(int index)
- temp.setNum(index+1);
+ temp.setNum(index);
remoteServerStr = cfg.readEntry( temp,"");
+ qDebug("Group" +temp);
cfg.setGroup(temp);
@@ -1241,6 +1251,8 @@ void OpieFtp::serverComboSelected(int index)
UsernameComboBox->lineEdit()->setText(username);
-
+ qDebug(username);
// qDebug("Password is "+cfg.readEntryCrypt(username, "me@opieftp.org"));
PasswordEdit->setText(cfg.readEntryCrypt(username, "me@opieftp.org"));
-
+// UsernameComboBox
+// PasswordEdit
+
cfg.setGroup("Server");