Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Add-ons
Commits
f52a224c
Commit
f52a224c
authored
Jan 16, 2022
by
Laurent Montel
Browse files
USe directly isOnline method
parent
c93b0546
Pipeline
#124344
passed with stage
in 12 minutes and 8 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
f52a224c
...
...
@@ -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.4
0
"
)
set
(
PIMCOMMON_LIB_VERSION
"5.19.4
1
"
)
set
(
GRANTLEETHEME_LIB_VERSION
"5.19.40"
)
set
(
CALENDARSUPPORT_LIB_VERSION
"5.19.40"
)
set
(
EVENTVIEW_LIB_VERSION
"5.19.40"
)
...
...
kmail/editorplugins/insertshorturl/insertshorturlplugineditorinterface.cpp
View file @
f52a224c
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment