-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 668a03d..269449e 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp @@ -765,2 +765,3 @@ void OpieFtp::remoteListClicked(QListViewItem *selectedItem) if( selectedItem) { + // if(selectedItem!= NULL) { // QCopEnvelope ( "QPE/System", "busy()" ); @@ -910,3 +911,4 @@ void OpieFtp::showRemoteMenu(QListViewItem * item) m = new QPopupMenu(this); - if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) != -1) + if(item != NULL ) { + if( item->text(0).find("/",0,TRUE) != -1) m->insertItem( tr( "Change Directory" ), this, SLOT( doRemoteCd() )); @@ -914,2 +916,3 @@ void OpieFtp::showRemoteMenu(QListViewItem * item) m->insertItem( tr( "Download" ), this, SLOT( remoteDownload() )); + } m->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); @@ -930,3 +933,4 @@ void OpieFtp::showLocalMenu(QListViewItem * item) m->insertSeparator(); - if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) !=-1) + if(item != NULL ) { + if( item->text(0).find("/",0,TRUE) !=-1) m->insertItem( tr( "Change Directory" ), this, SLOT( doLocalCd() )); @@ -934,2 +938,3 @@ void OpieFtp::showLocalMenu(QListViewItem * item) m->insertItem( tr( "Upload" ), this, SLOT( localUpload() )); + } m->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); |