Skip to content

Commit

Permalink
make it possible to always close media list on basic downloader tab
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Sep 7, 2024
1 parent d5f9b95 commit 694c831
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/basicdownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,23 +90,23 @@ basicdownloader::basicdownloader( const Context& ctx ) :

auto row = m_tableList.currentRow() ;

if( row != -1 ){
QMenu m ;

const auto& obj = m_tableList.stuffAt( row ).toqJsonObject() ;
if( row != -1 ){

QMenu m ;
const auto& obj = m_tableList.stuffAt( row ).toqJsonObject() ;

utility::contextMenuForDirectUrl( m,obj,m_ctx ) ;

m.addSeparator() ;
m.addSeparator() ;
}

connect( m.addAction( tr( "Hide List" ) ),&QAction::triggered,[ this ](){
connect( m.addAction( tr( "Hide List" ) ),&QAction::triggered,[ this ](){

m_tableList.setVisible( false ) ;
} ) ;
m_tableList.setVisible( false ) ;
} ) ;

m.exec( QCursor::pos() ) ;
}
m.exec( QCursor::pos() ) ;
} ) ;

connect( m_ui.pbOptionsDownloadOptions,&QPushButton::clicked,[ this ](){
Expand Down

0 comments on commit 694c831

Please sign in to comment.