Commit 84feb9ae authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port away from ERR_SLAVE_DEFINED

parent 469261ee
Pipeline #199448 passed with stage
in 1 minute and 51 seconds
......@@ -10,6 +10,7 @@
#include "bluedevil_kio_obexftp.h"
#include "transferfilejob.h"
#include "version.h"
#include <kio_version.h>
#include <unistd.h>
......@@ -92,7 +93,11 @@ void KioFtp::connectToHost()
bool KioFtp::testConnection()
{
if (!m_kded->isOnline().value()) {
#if KIO_VERSION >= QT_VERSION_CHECK(5, 96, 0)
error(KIO::ERR_WORKER_DEFINED, i18n("Obexd service is not running."));
#else
error(KIO::ERR_SLAVE_DEFINED, i18n("Obexd service is not running."));
#endif
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment