Changeset 0f58510 in subsurface


Ignore:
Timestamp:
Jan 11, 2017, 5:43:14 AM (10 months ago)
Author:
Subsurface <dirk@…>
Branches:
master
Children:
db17adfb
Parents:
693bf24
git-author:
Robert C. Helling <helling@…> (01/11/17 01:50:52)
git-committer:
Subsurface <dirk@…> (01/11/17 05:43:14)
Message:

Provide an error message when downloadig image from web fails.

Signed-off-by: Robert C. Helling <helling@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/divelistview.cpp

    r6aa0137 r0f58510  
    969969                QImage image = QImage();
    970970                image.loadFromData(imageData);
    971                 if (image.isNull())
     971                if (image.isNull()) {
    972972                        // If this is not an image, maybe it's an html file and Miika can provide some xslr magic to extract images.
    973973                        // In this case we would call the function recursively on the list of image source urls;
     974                        MainWindow::instance()->getNotificationWidget()->showNotification(tr("%1 does not appear to be an image").arg(url.toString()), KMessageWidget::Error);
    974975                        return;
     976                }
    975977
    976978                // Since we already downloaded the image we can cache it as well.
Note: See TracChangeset for help on using the changeset viewer.