Skip to content

Commit

Permalink
code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Feb 5, 2024
1 parent 8285ae0 commit 15db86f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1891,8 +1891,6 @@ void utility::contextMenuForDirectUrl( const QString& e,const QJsonArray& arr,co
{
QMenu m ;

auto clipBoard = QApplication::clipboard() ;

auto player = util::split( e,":" ) ;

if( arr.size() == 0 ){
Expand All @@ -1906,6 +1904,8 @@ void utility::contextMenuForDirectUrl( const QString& e,const QJsonArray& arr,co
m.addAction( s )->setEnabled( false ) ;
}
}else{
auto clipBoard = QApplication::clipboard() ;

auto act = &QAction::triggered ;

if( clipBoard ){
Expand Down Expand Up @@ -1942,7 +1942,7 @@ void utility::contextMenuForDirectUrl( const QString& e,const QJsonArray& arr,co
if( player.size() > 1 ){

const auto& pName = player[ 0 ] ;
const auto& pExe = player[ 1 ] ;
const auto& pExe = util::join( player,1,":" ) ;

if( arr.size() == 1 ){

Expand Down

0 comments on commit 15db86f

Please sign in to comment.