Merge pull request #1109 from csoler/v0.6-Links2

use "download..." menu with RsCollectionDialog with multiple files an…
This commit is contained in:
csoler 2017-11-13 22:32:30 +01:00 committed by GitHub
commit 7304c48a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() ) ) ;