Comment 2 for bug 33173

Revision history for this message
Raphaƫl Pinson (raphink) wrote :

I think this cannot be linked to a bug reported against gnome-cups-manager. I've got the KDE bug here, but gnome-cups-manager works fine.

This bug exists in Kubuntu Dapper Flight 4 CD, so it is due to a bug that existed before its release (Feb 17th).

I found the message displayed by kdeprint (or kprinter, too) in the kdelibs package, in kdelibs-3.5.1/kdeprint/cups/kmcupsmanager.cpp, on line 978 , it says :

 setErrorMsg( i18n( "Connection to CUPS server failed. Check that the CUPS server is correctly installed and running. "
    "Error: %1." ).arg( errcode == QSocket::ErrConnectionRefused ? i18n( "connection refused" ) : i18n( "host not found" ) ) );

This is part of the KMCupsManager::slotConnectionFailed( int errcode ) function and only called by KMCupsManager::checkUpdatePossibleInternal() on line 926 :

 m_socket = new QSocket( this );
 connect( m_socket, SIGNAL( connected() ), SLOT( slotConnectionSuccess() ) );
 connect( m_socket, SIGNAL( error( int ) ), SLOT( slotConnectionFailed( int ) ) );