summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-04-05 01:34:24 (UTC)
committer llornkcor <llornkcor>2002-04-05 01:34:24 (UTC)
commitdd5bc1f9d61cdd8cfde4c7a7fbba3b53b77b2670 (patch) (side-by-side diff)
treee8ebf3f926e3ac7e4d612964a05bce834fe6fc2e
parent8674b15e0768d5108d9a225ff2631538283e1019 (diff)
downloadopie-dd5bc1f9d61cdd8cfde4c7a7fbba3b53b77b2670.zip
opie-dd5bc1f9d61cdd8cfde4c7a7fbba3b53b77b2670.tar.gz
opie-dd5bc1f9d61cdd8cfde4c7a7fbba3b53b77b2670.tar.bz2
fixed bug where same server was being saved multiple times
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieftp/opieftp.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp
index b451925..919649e 100644
--- a/noncore/net/opieftp/opieftp.cpp
+++ b/noncore/net/opieftp/opieftp.cpp
@@ -118,3 +118,3 @@ OpieFtp::OpieFtp( )
- TabWidget->setTabShape(QTabWidget::Triangular);
+// TabWidget->setTabShape(QTabWidget::Triangular);
@@ -269,3 +269,4 @@ OpieFtp::OpieFtp( )
readConfig();
- ServerComboBox->setCurrentItem(currentServerConfig);
+ ServerComboBox->setCurrentItem(currentServerConfig);
+
TabWidget->setCurrentPage(2);
@@ -325,5 +326,5 @@ void OpieFtp::serverComboEdited(const QString & edit)
{
- if( !edit.isEmpty() ) {
+ if( ServerComboBox->text(currentServerConfig) != edit /*edit.isEmpty() */) {
+ qDebug("ServerComboEdited");
currentServerConfig = -1;
-// qDebug("comboedited");
}
@@ -525,3 +526,3 @@ bool OpieFtp::remoteChDir(const QString &dir)
QMessageBox::message(tr("Note"),msg);
- qDebug(msg);
+// qDebug(msg);
QCopEnvelope ( "QPE/System", "notBusy()" );
@@ -669,3 +670,3 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
QMessageBox::message(tr("Note"),msg);
- qDebug(msg);
+// qDebug(msg);
}
@@ -677,3 +678,3 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem)
QMessageBox::message(tr("Note"),msg);
- qDebug(msg);
+// qDebug(msg);
}
@@ -1067,2 +1068,3 @@ void OpieFtp::readConfig()
currentServerConfig = cfg.readNumEntry("currentServer", -1);
+// qDebug("Reading %d", currentServerConfig);
serverComboSelected( currentServerConfig);
@@ -1082,3 +1084,2 @@ void OpieFtp::writeConfig()
}
-
temp.setNum( numberOfEntries + 1);