@ -424,17 +424,16 @@ void TransferListWidget::copySelectedMagnetURIs() const
@@ -424,17 +424,16 @@ void TransferListWidget::copySelectedMagnetURIs() const
qApp - > clipboard ( ) - > setText ( magnet_uris . join ( " \n " ) ) ;
}
// create list of captions from tasklist.
void TransferListWidget : : copySelectedCaptions ( ) const
void TransferListWidget : : copySelectedNames ( ) const
{
QStringList cap ti ons;
QStringList torre nt_name s ;
const QStringList hashes = getSelectedTorrentsHashes ( ) ;
foreach ( const QString & hash , hashes ) {
const QTorrentHandle h = BTSession - > getTorrentHandle ( hash ) ;
if ( h . is_valid ( ) )
cap ti ons < < h . name ( ) ;
torre nt_name s < < h . name ( ) ;
}
qApp - > clipboard ( ) - > setText ( cap ti ons. join ( " \n " ) ) ;
qApp - > clipboard ( ) - > setText ( torre nt_name s . join ( " \n " ) ) ;
}
void TransferListWidget : : hidePriorityColumn ( bool hide )
@ -755,8 +754,8 @@ void TransferListWidget::displayListMenu(const QPoint&)
@@ -755,8 +754,8 @@ void TransferListWidget::displayListMenu(const QPoint&)
QAction actionCopy_magnet_link ( QIcon ( " :/icons/magnet.png " ) , tr ( " Copy magnet link " ) , 0 ) ;
connect ( & actionCopy_magnet_link , SIGNAL ( triggered ( ) ) , this , SLOT ( copySelectedMagnetURIs ( ) ) ) ;
QAction actionCopy_caption_list ( IconProvider : : instance ( ) - > getIcon ( " edit-copy " ) , tr ( " Copy name " ) , 0 ) ;
connect ( & actionCopy_caption_list , SIGNAL ( triggered ( ) ) , this , SLOT ( copySelectedCaption s ( ) ) ) ;
QAction actionCopy_name ( IconProvider : : instance ( ) - > getIcon ( " edit-copy " ) , tr ( " Copy name " ) , 0 ) ;
connect ( & actionCopy_name , SIGNAL ( triggered ( ) ) , this , SLOT ( copySelectedName s ( ) ) ) ;
QAction actionSuper_seeding_mode ( tr ( " Super seeding mode " ) , 0 ) ;
actionSuper_seeding_mode . setCheckable ( true ) ;
@ -890,7 +889,7 @@ void TransferListWidget::displayListMenu(const QPoint&)
@@ -890,7 +889,7 @@ void TransferListWidget::displayListMenu(const QPoint&)
prioMenu - > addAction ( & actionBottomPriority ) ;
}
listMenu . addSeparator ( ) ;
listMenu . addAction ( & actionCopy_caption_list ) ;
listMenu . addAction ( & actionCopy_name ) ;
listMenu . addAction ( & actionCopy_magnet_link ) ;
// Call menu
QAction * act = 0 ;