author | llornkcor <llornkcor> | 2002-03-28 13:46:22 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-03-28 13:46:22 (UTC) |
commit | 262def2f8e13de60344f3118078328d5e37a6054 (patch) (unidiff) | |
tree | 0e4769627f6a10c33682312f9cc0219f7af8e59b | |
parent | cd6f89bfab7e609705e8013d50413e1cae929d8a (diff) | |
download | opie-262def2f8e13de60344f3118078328d5e37a6054.zip opie-262def2f8e13de60344f3118078328d5e37a6054.tar.gz opie-262def2f8e13de60344f3118078328d5e37a6054.tar.bz2 |
fixed clicking on empty space.. dambit
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 36de842..6be28d6 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -314,17 +314,18 @@ void OpieFtp::newConnection() | |||
314 | PasswordEdit->setText( "" ); | 314 | PasswordEdit->setText( "" ); |
315 | ServerComboBox->lineEdit()->setText( ""); | 315 | ServerComboBox->lineEdit()->setText( ""); |
316 | remotePath->setText( currentRemoteDir = "/"); | 316 | remotePath->setText( currentRemoteDir = "/"); |
317 | PortSpinBox->setValue( 21); | 317 | PortSpinBox->setValue( 21); |
318 | TabWidget->setCurrentPage(2); | 318 | TabWidget->setCurrentPage(2); |
319 | currentServerConfig = -1; | 319 | currentServerConfig = -1; |
320 | } | 320 | } |
321 | 321 | ||
322 | void OpieFtp::serverComboEdited(const QString & edit) { | 322 | void OpieFtp::serverComboEdited(const QString & edit) |
323 | { | ||
323 | if( !edit.isEmpty() ) { | 324 | if( !edit.isEmpty() ) { |
324 | currentServerConfig = -1; | 325 | currentServerConfig = -1; |
325 | // qDebug("comboedited"); | 326 | // qDebug("comboedited"); |
326 | } | 327 | } |
327 | } | 328 | } |
328 | 329 | ||
329 | void OpieFtp::connectorBtnToggled(bool On) | 330 | void OpieFtp::connectorBtnToggled(bool On) |
330 | { | 331 | { |
@@ -649,17 +650,17 @@ bool OpieFtp::populateRemoteView( ) | |||
649 | } else | 650 | } else |
650 | qDebug("temp file not opened successfullly "+sfile); | 651 | qDebug("temp file not opened successfullly "+sfile); |
651 | Remote_View->setSorting( 4,TRUE); | 652 | Remote_View->setSorting( 4,TRUE); |
652 | return true; | 653 | return true; |
653 | } | 654 | } |
654 | 655 | ||
655 | void OpieFtp::remoteListClicked(QListViewItem *selectedItem) | 656 | void OpieFtp::remoteListClicked(QListViewItem *selectedItem) |
656 | { | 657 | { |
657 | if(item) { | 658 | if( selectedItem) { |
658 | QCopEnvelope ( "QPE/System", "busy()" ); | 659 | QCopEnvelope ( "QPE/System", "busy()" ); |
659 | QString oldRemoteCurrentDir = currentRemoteDir; | 660 | QString oldRemoteCurrentDir = currentRemoteDir; |
660 | QString strItem=selectedItem->text(0); | 661 | QString strItem=selectedItem->text(0); |
661 | strItem=strItem.simplifyWhiteSpace(); | 662 | strItem=strItem.simplifyWhiteSpace(); |
662 | if(strItem == "../") { // the user wants to go ^ | 663 | if(strItem == "../") { // the user wants to go ^ |
663 | if( FtpCDUp( conn) == 0) { | 664 | if( FtpCDUp( conn) == 0) { |
664 | QString msg; | 665 | QString msg; |
665 | msg.sprintf(tr("Unable to cd up\n")+"%s",FtpLastResponse(conn)); | 666 | msg.sprintf(tr("Unable to cd up\n")+"%s",FtpLastResponse(conn)); |
@@ -706,18 +707,17 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem) | |||
706 | currentPathCombo->lineEdit()->setText( currentRemoteDir ); | 707 | currentPathCombo->lineEdit()->setText( currentRemoteDir ); |
707 | fillRemoteCombo( (const QString &)currentDir); | 708 | fillRemoteCombo( (const QString &)currentDir); |
708 | QCopEnvelope ( "QPE/System", "notBusy()" ); | 709 | QCopEnvelope ( "QPE/System", "notBusy()" ); |
709 | } | 710 | } |
710 | } | 711 | } |
711 | 712 | ||
712 | void OpieFtp::localListClicked(QListViewItem *selectedItem) | 713 | void OpieFtp::localListClicked(QListViewItem *selectedItem) |
713 | { | 714 | { |
714 | // qDebug(selectedItem->text(0)); | 715 | if(selectedItem!= NULL) { |
715 | if(item!= NULL) { | ||
716 | 716 | ||
717 | QString strItem=selectedItem->text(0); | 717 | QString strItem=selectedItem->text(0); |
718 | QString strSize=selectedItem->text(1); | 718 | QString strSize=selectedItem->text(1); |
719 | strSize=strSize.stripWhiteSpace(); | 719 | strSize=strSize.stripWhiteSpace(); |
720 | if(strItem.find("@",0,TRUE) !=-1 || strItem.find("->",0,TRUE) !=-1 ) { //if symlink | 720 | if(strItem.find("@",0,TRUE) !=-1 || strItem.find("->",0,TRUE) !=-1 ) { //if symlink |
721 | // is symlink | 721 | // is symlink |
722 | QString strItem2 = strItem.right( (strItem.length() - strItem.find("->",0,TRUE)) - 4); | 722 | QString strItem2 = strItem.right( (strItem.length() - strItem.find("->",0,TRUE)) - 4); |
723 | if(QDir(strItem2).exists() ) { | 723 | if(QDir(strItem2).exists() ) { |