author | llornkcor <llornkcor> | 2002-04-30 12:35:07 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-30 12:35:07 (UTC) |
commit | 23834bdf2d57d155644234e45e647567d4c027d1 (patch) (side-by-side diff) | |
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) { QPopupMenu * m;// = new QPopupMenu( Local_View ); m = new QPopupMenu(this); if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) != -1) m->insertItem( tr( "Change Directory" ), this, SLOT( doRemoteCd() )); else m->insertItem( tr( "Download" ), this, SLOT( remoteDownload() )); m->insertItem( tr( "Make Directory" ), this, SLOT( remoteMakDir() )); + m->insertItem( tr("Rescan"), this, SLOT( populateLocalView() )); m->insertItem( tr( "Rename" ), this, SLOT( remoteRename() )); m->insertSeparator(); m->insertItem( tr( "Delete" ), this, SLOT( remoteDelete() )); m->exec( QCursor::pos() ); delete m; } void OpieFtp::showLocalMenu(QListViewItem * item) @@ -876,16 +877,17 @@ void OpieFtp::showLocalMenu(QListViewItem * item) m = new QPopupMenu( this); m->insertItem( tr( "Show Hidden Files" ), this, SLOT( showHidden() )); m->insertSeparator(); if( /*item->text(0).right(1) == "/" ||*/ item->text(0).find("/",0,TRUE) !=-1) m->insertItem( tr( "Change Directory" ), this, SLOT( doLocalCd() )); else m->insertItem( tr( "Upload" ), this, SLOT( localUpload() )); m->insertItem( tr( "Make Directory" ), this, SLOT( localMakDir() )); + m->insertItem( tr("Rescan"), this, SLOT( populateRemoteView() )); m->insertItem( tr( "Rename" ), this, SLOT( localRename() )); m->insertSeparator(); m->insertItem( tr( "Delete" ), this, SLOT( localDelete() )); m->setCheckable(TRUE); if (b) m->setItemChecked(m->idAt(0),TRUE); else m->setItemChecked(m->idAt(0),FALSE); |