summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-26 15:53:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-26 15:53:47 +0200
commit752d9b60c459c51fd5014d91a9e03c84a8f18f38 (patch)
tree17e7befbbafac4255b01ee206e8d1005158ff4a0
parent3b92585a47387d1d7e68d99678fb3956117ce416 (diff)
downloadsubsurface-752d9b60c459c51fd5014d91a9e03c84a8f18f38.tar.gz
Divelistview: use report_error to report and error
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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;
}