summaryrefslogtreecommitdiff
path: root/src/previewimage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/previewimage.cpp')
-rw-r--r--src/previewimage.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/previewimage.cpp b/src/previewimage.cpp
index 44c0850a..60207fb3 100644
--- a/src/previewimage.cpp
+++ b/src/previewimage.cpp
@@ -93,6 +93,7 @@ QString PreviewImage::guessNameFromUrl(QUrl url)
QString name = url.toString( QUrl::RemoveScheme | QUrl::RemoveUserInfo | QUrl::StripTrailingSlash );
// TODO learn Regular Expressions :)
+ // and implement something better here..
name.remove('/');
name.remove('&');
name.remove('.');