author | llornkcor <llornkcor> | 2002-04-30 12:35:07 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-30 12:35:07 (UTC) |
commit | 23834bdf2d57d155644234e45e647567d4c027d1 (patch) (unidiff) | |
tree | 4ef44ee01a72360c65bca7e59fc16f7618151eeb | |
parent | aae6ce64221457dbed804d7ebce095a621ea892a (diff) | |
download | opie-23834bdf2d57d155644234e45e647567d4c027d1.zip opie-23834bdf2d57d155644234e45e647567d4c027d1.tar.gz opie-23834bdf2d57d155644234e45e647567d4c027d1.tar.bz2 |
added rescan to popup menu
-rw-r--r-- | noncore/net/opieftp/opieftp.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/net/opieftp/opieftp.cpp b/noncore/net/opieftp/opieftp.cpp index 6d0be57..0b88a35 100644 --- a/noncore/net/opieftp/opieftp.cpp +++ b/noncore/net/opieftp/opieftp.cpp | |||
@@ -857,16 +857,17 @@ void OpieFtp::showRemoteMenu(QListViewItem * item) | |||
857 | { | 857 | { |
858 | QPopupMenu * m;// = new QPopupMenu( Local_View ); | 858 | QPopupMenu * m;// = new QPopupMenu( Local_View ); |
859 | m = new QPopupMenu(this); | 859 | m = new QPopupMenu(this); |
860 | if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) != -1) | 860 | if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) != -1) |
861 | m->insertItem( tr( "Change Directory" ), this, SLOT( doRemoteCd() )); | 861 | m->insertItem( tr( "Change Directory" ), this, SLOT( doRemoteCd() )); |
862 | else | 862 | else |
863 | m->insertItem( tr( "Download" ), this, SLOT( remoteDownload() )); | 863 | m->insertItem( tr( "Download" ), this, SLOT( remoteDownload() )); |
864 | m->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); | 864 | m->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); |
865 | m->insertItem( tr("Rescan"), this, SLOT( populateLocalView() )); | ||
865 | m->insertItem( tr( "Rename" ), this, SLOT( remoteRename() )); | 866 | m->insertItem( tr( "Rename" ), this, SLOT( remoteRename() )); |
866 | m->insertSeparator(); | 867 | m->insertSeparator(); |
867 | m->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); | 868 | m->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); |
868 | m->exec( QCursor::pos() ); | 869 | m->exec( QCursor::pos() ); |
869 | delete m; | 870 | delete m; |
870 | } | 871 | } |
871 | 872 | ||
872 | void OpieFtp::showLocalMenu(QListViewItem * item) | 873 | void OpieFtp::showLocalMenu(QListViewItem * item) |
@@ -876,16 +877,17 @@ void OpieFtp::showLocalMenu(QListViewItem * item) | |||
876 | m = new QPopupMenu( this); | 877 | m = new QPopupMenu( this); |
877 | m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); | 878 | m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); |
878 | m->insertSeparator(); | 879 | m->insertSeparator(); |
879 | if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) !=-1) | 880 | if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) !=-1) |
880 | m->insertItem( tr( "Change Directory" ), this, SLOT( doLocalCd() )); | 881 | m->insertItem( tr( "Change Directory" ), this, SLOT( doLocalCd() )); |
881 | else | 882 | else |
882 | m->insertItem( tr( "Upload" ), this, SLOT( localUpload() )); | 883 | m->insertItem( tr( "Upload" ), this, SLOT( localUpload() )); |
883 | m->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); | 884 | m->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); |
885 | m->insertItem( tr("Rescan"), this, SLOT( populateRemoteView() )); | ||
884 | m->insertItem( tr( "Rename" ), this, SLOT( localRename() )); | 886 | m->insertItem( tr( "Rename" ), this, SLOT( localRename() )); |
885 | m->insertSeparator(); | 887 | m->insertSeparator(); |
886 | m->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); | 888 | m->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); |
887 | m->setCheckable(TRUE); | 889 | m->setCheckable(TRUE); |
888 | if (b) | 890 | if (b) |
889 | m->setItemChecked(m->idAt(0),TRUE); | 891 | m->setItemChecked(m->idAt(0),TRUE); |
890 | else | 892 | else |
891 | m->setItemChecked(m->idAt(0),FALSE); | 893 | m->setItemChecked(m->idAt(0),FALSE); |