Commit f52a224c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe directly isOnline method

parent c93b0546
Pipeline #124344 passed with stage
in 12 minutes and 8 seconds
......@@ -68,7 +68,7 @@ find_package(KF5GuiAddons ${KF5_MIN_VERSION} CONFIG REQUIRED)
set(MAILCOMMON_LIB_VERSION "5.19.40")
set(GRAVATAR_LIB_VERSION "5.19.40")
set(PIMCOMMON_LIB_VERSION "5.19.40")
set(PIMCOMMON_LIB_VERSION "5.19.41")
set(GRANTLEETHEME_LIB_VERSION "5.19.40")
set(CALENDARSUPPORT_LIB_VERSION "5.19.40")
set(EVENTVIEW_LIB_VERSION "5.19.40")
......
......@@ -16,7 +16,6 @@
#include <KSharedConfig>
#include <PimCommon/NetworkManager>
#include <QAction>
#include <QNetworkConfigurationManager>
InsertShorturlPluginEditorInterface::InsertShorturlPluginEditorInterface(QObject *parent)
: MessageComposer::PluginEditorInterface(parent)
......@@ -82,7 +81,7 @@ void InsertShorturlPluginEditorInterface::exec()
qCWarning(KMAIL_INSERTSHORTURL_LOG) << "Current Engine not defined";
return;
}
if (!PimCommon::NetworkManager::self()->networkConfigureManager()->isOnline()) {
if (!PimCommon::NetworkManager::self()->isOnline()) {
Q_EMIT message(i18n("No network connection detected, we cannot shorten URL."));
return;
}
......
Markdown is supported
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