From 1669cd48c864b62911d17ff603ff1f8b9c16ecc9 Mon Sep 17 00:00:00 2001 From: csoler Date: Mon, 13 Nov 2017 22:08:05 +0100 Subject: [PATCH] use "download..." menu with RsCollectionDialog with multiple files and directories --- retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp b/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp index 92fd34857..ce67043a9 100644 --- a/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp +++ b/retroshare-gui/src/gui/FileTransfer/SharedFilesDialog.cpp @@ -509,7 +509,9 @@ void RemoteSharedFilesDialog::spawnCustomPopupMenu( QPoint point ) collectionMenu.addAction(collCreateAct); collectionMenu.addAction(collOpenAct); - if(type == DIR_TYPE_DIR) + QModelIndexList list = ui.dirTreeView->selectionModel()->selectedRows() ; + + if(type == DIR_TYPE_DIR || list.size() > 1) { QAction *downloadActI = new QAction(QIcon(IMAGE_DOWNLOAD), tr( "Download..." ), &contextMnu ) ; connect( downloadActI , SIGNAL( triggered() ), this, SLOT( downloadRemoteSelectedInteractive() ) ) ;