Skip to content

Commit

Permalink
code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Nov 3, 2022
1 parent 4f09bd3 commit 0158696
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/qcheckgmail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,16 @@ void qCheckGMail::updateUi( int counter,

void qCheckGMail::audioNotify()
{
QProcess::startDetached( m_settings.audioPlayer(),{ AUDIO_NOTIFY_FILE } ) ;
auto m = util::splitPreserveQuotes( m_settings.audioPlayer() ) ;

if( m.size() > 0 ){

auto exe = m.takeFirst() ;

m.append( AUDIO_NOTIFY_FILE ) ;

QProcess::startDetached( exe,m ) ;
}
}

void qCheckGMail::visualNotify()
Expand Down

0 comments on commit 0158696

Please sign in to comment.