mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
gwenview: update caption on load failure
otherwise the caption does not indicate the current document/image URL Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e04e8962e1
commit
1d88215e87
1 changed files with 2 additions and 1 deletions
|
@ -443,11 +443,12 @@ DocumentView::Setup DocumentView::setup() const
|
|||
void DocumentView::slotLoadingFailed()
|
||||
{
|
||||
d->hideLoadingIndicator();
|
||||
MessageViewAdapter* adapter = new MessageViewAdapter;
|
||||
MessageViewAdapter* adapter = new MessageViewAdapter();
|
||||
adapter->setDocument(d->mDocument);
|
||||
QString message = i18n("Loading <filename>%1</filename> failed", d->mDocument->url().fileName());
|
||||
adapter->setErrorMessage(message, d->mDocument->errorString());
|
||||
d->setCurrentAdapter(adapter);
|
||||
d->updateCaption();
|
||||
emit completed();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue