Divelistview: use report_error to report and error

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2017-10-26 15:53:47 +02:00
parent 3b92585a47
commit 752d9b60c4

View file

@ -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;
}