-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 17 |
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 | |||
@@ -117,5 +117,5 @@ OpieFtp::OpieFtp( ) | |||
117 | layout->addMultiCellWidget( TabWidget, 1, 1, 0, 3 ); | 117 | layout->addMultiCellWidget( TabWidget, 1, 1, 0, 3 ); |
118 | 118 | ||
119 | TabWidget->setTabShape(QTabWidget::Triangular); | 119 | // TabWidget->setTabShape(QTabWidget::Triangular); |
120 | 120 | ||
121 | tab = new QWidget( TabWidget, "tab" ); | 121 | tab = new QWidget( TabWidget, "tab" ); |
@@ -268,5 +268,6 @@ OpieFtp::OpieFtp( ) | |||
268 | populateLocalView(); | 268 | populateLocalView(); |
269 | readConfig(); | 269 | readConfig(); |
270 | ServerComboBox->setCurrentItem(currentServerConfig); | 270 | ServerComboBox->setCurrentItem(currentServerConfig); |
271 | |||
271 | TabWidget->setCurrentPage(2); | 272 | TabWidget->setCurrentPage(2); |
272 | } | 273 | } |
@@ -324,7 +325,7 @@ void OpieFtp::newConnection() | |||
324 | void OpieFtp::serverComboEdited(const QString & edit) | 325 | void OpieFtp::serverComboEdited(const QString & edit) |
325 | { | 326 | { |
326 | if( !edit.isEmpty() ) { | 327 | if( ServerComboBox->text(currentServerConfig) != edit /*edit.isEmpty() */) { |
328 | qDebug("ServerComboEdited"); | ||
327 | currentServerConfig = -1; | 329 | currentServerConfig = -1; |
328 | // qDebug("comboedited"); | ||
329 | } | 330 | } |
330 | } | 331 | } |
@@ -524,5 +525,5 @@ bool OpieFtp::remoteChDir(const QString &dir) | |||
524 | msg.replace(QRegExp(":"),"\n"); | 525 | msg.replace(QRegExp(":"),"\n"); |
525 | QMessageBox::message(tr("Note"),msg); | 526 | QMessageBox::message(tr("Note"),msg); |
526 | qDebug(msg); | 527 | // qDebug(msg); |
527 | QCopEnvelope ( "QPE/System", "notBusy()" ); | 528 | QCopEnvelope ( "QPE/System", "notBusy()" ); |
528 | return FALSE; | 529 | return FALSE; |
@@ -668,5 +669,5 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem) | |||
668 | msg.replace(QRegExp(":"),"\n"); | 669 | msg.replace(QRegExp(":"),"\n"); |
669 | QMessageBox::message(tr("Note"),msg); | 670 | QMessageBox::message(tr("Note"),msg); |
670 | qDebug(msg); | 671 | // qDebug(msg); |
671 | } | 672 | } |
672 | char path[256]; | 673 | char path[256]; |
@@ -676,5 +677,5 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem) | |||
676 | msg.replace(QRegExp(":"),"\n"); | 677 | msg.replace(QRegExp(":"),"\n"); |
677 | QMessageBox::message(tr("Note"),msg); | 678 | QMessageBox::message(tr("Note"),msg); |
678 | qDebug(msg); | 679 | // qDebug(msg); |
679 | } | 680 | } |
680 | currentRemoteDir=path; | 681 | currentRemoteDir=path; |
@@ -1066,4 +1067,5 @@ void OpieFtp::readConfig() | |||
1066 | cfg.setGroup("Server"); | 1067 | cfg.setGroup("Server"); |
1067 | currentServerConfig = cfg.readNumEntry("currentServer", -1); | 1068 | currentServerConfig = cfg.readNumEntry("currentServer", -1); |
1069 | // qDebug("Reading %d", currentServerConfig); | ||
1068 | serverComboSelected( currentServerConfig); | 1070 | serverComboSelected( currentServerConfig); |
1069 | } | 1071 | } |
@@ -1081,5 +1083,4 @@ void OpieFtp::writeConfig() | |||
1081 | QString tempStr = cfg.readEntry( temp,""); | 1083 | QString tempStr = cfg.readEntry( temp,""); |
1082 | } | 1084 | } |
1083 | |||
1084 | temp.setNum( numberOfEntries + 1); | 1085 | temp.setNum( numberOfEntries + 1); |
1085 | cfg.setGroup("Server"); | 1086 | cfg.setGroup("Server"); |