summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-10-26 16:24:51 +0200
committerGravatar GitHub <noreply@github.com>2017-10-26 16:24:51 +0200
commita08e8a2d04821b4dcdfabe9f8e2d05a5cdac0d8d (patch)
tree463e846d897487bcaa628c7a8c03b601d4b263cd /desktop-widgets/divelistview.cpp
parent2c67b387ea5571675db68c46b7879b4746571fd9 (diff)
parent405923ecfdca7993a3f6433eba4f0de0d03161f5 (diff)
downloadsubsurface-a08e8a2d04821b4dcdfabe9f8e2d05a5cdac0d8d.tar.gz
Merge pull request #726 from Subsurface-divelog/rewriteErrorHandling
Rewrite error handling
Diffstat (limited to 'desktop-widgets/divelistview.cpp')
-rw-r--r--desktop-widgets/divelistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/divelistview.cpp b/desktop-widgets/divelistview.cpp
index 5e6bfd5f0..c12ac8934 100644
--- a/desktop-widgets/divelistview.cpp
+++ b/desktop-widgets/divelistview.cpp
@@ -983,7 +983,7 @@ void DiveListView::loadImageFromURL(QUrl url)
if (image.isNull()) {
// If this is not an image, maybe it's an html file and Miika can provide some xslr magic to extract images.
// In this case we would call the function recursively on the list of image source urls;
- MainWindow::instance()->getNotificationWidget()->showNotification(tr("%1 does not appear to be an image").arg(url.toString()), KMessageWidget::Error);
+ report_error(qPrintable(tr("%1 does not appear to be an image").arg(url.toString())));
return;
}