Commit 03d562fd authored by Alex Merry's avatar Alex Merry
Browse files

If we cannot read an image file at all, tell the user this

This allows the user to distinguish between the file being corrupt and
the permissions being incorrect.

BUG: 140013
FIXED-IN: 2.1
parent d27648fc
......@@ -863,7 +863,11 @@ void K3b::ImageWritingDialog::slotUpdateImage( const QString& )
if( d->foundImageType == IMAGE_UNKNOWN ) {
QTreeWidgetItem* item = new QTreeWidgetItem( d->infoView );
item->setText( 0, i18n("Seems not to be a usable image") );
if ( !info.isReadable() ) {
item->setText( 0, i18n("Unable to read image file") );
} else {
item->setText( 0, i18n("Seems not to be a usable image") );
}
item->setForeground( 0, d->negativeTextColor );
item->setIcon( 0, KIcon( "dialog-error") );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment