Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KDE PIM Add-ons
Commits
f64bc6a0
Commit
f64bc6a0
authored
Mar 10, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't expand when not necessary
parent
c362da00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
plugins/messageviewerplugins/expandurlplugin/viewerpluginexpandurlinterface.cpp
...lugins/expandurlplugin/viewerpluginexpandurlinterface.cpp
+6
-2
No files found.
plugins/messageviewerplugins/expandurlplugin/viewerpluginexpandurlinterface.cpp
View file @
f64bc6a0
...
...
@@ -17,6 +17,8 @@
#include "viewerpluginexpandurlinterface.h"
#include <MessageViewer/ScamExpandUrlJob>
#include <MessageViewer/ScamCheckShortUrlManager>
#include <MessageViewer/ScamCheckShortUrl>
#include <QHBoxLayout>
#include <QIcon>
...
...
@@ -47,8 +49,10 @@ QAction *ViewerPluginExpandurlInterface::action() const
void
ViewerPluginExpandurlInterface
::
showWidget
()
{
if
(
mCurrentUrl
.
isValid
())
{
MessageViewer
::
ScamExpandUrlJob
*
job
=
new
MessageViewer
::
ScamExpandUrlJob
(
this
);
job
->
expandedUrl
(
mCurrentUrl
);
if
(
MessageViewer
::
ScamCheckShortUrlManager
::
self
()
->
scamCheckShortUrl
()
->
isShortUrl
(
mCurrentUrl
))
{
MessageViewer
::
ScamExpandUrlJob
*
job
=
new
MessageViewer
::
ScamExpandUrlJob
(
this
);
job
->
expandedUrl
(
mCurrentUrl
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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