Ticket #350: phononCheck.patch

File phononCheck.patch, 1.5 KB (added by valerio, 3 years ago)

Is this what you meant?

  • src/kmess.cpp

     
    5656#include "systemtraywidget.h" 
    5757 
    5858#include <QDir> 
     59#include <Phonon/BackendCapabilities> 
    5960 
    6061#include <KActionMenu> 
    6162#include <KConfig> 
     
    14631464  } 
    14641465 
    14651466 
     1467  // Check whether a Phonon backend is available 
     1468  if( Phonon::BackendCapabilities::availableAudioOutputDevices().isEmpty() ) 
     1469  { 
     1470 
     1471    // Show the message in the GUI as well. 
     1472    // Allow to user to choose "don't show this message again", in case he/she doesn't know how to fix it. 
     1473    KMessageBox::information( this, 
     1474                              i18nc( "Text for a message dialog box", 
     1475                                     "<html><p>KMess will not be able to play sounds.</p>" 
     1476                                     "<p>Make sure you have installed a so-called \"Phonon backend\":<br/>" 
     1477                                     "you can usually install a Phonon backend by searching for \"phonon\" " 
     1478                                     "in your package manager.</p>" 
     1479                                     "</html>" ), 
     1480                              i18nc( "Message box title", "Error With Sounds" ), 
     1481                              "phononBackendNotFound" ); 
     1482  } 
     1483 
    14661484  // Add check whether the 'eventsrc' file can be found. 
    14671485  // The warning is a bit obtruisive, but should help to user to fix the problem. 
    14681486  if( KGlobal::dirs()->findResource( "data", "kmess/kmess.notifyrc" ).isNull() )