From 84a7db4941772565766e757e0e38785ff1d87f1a Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Sun, 12 Jun 2005 14:16:21 +0000 Subject: [PATCH] Add error checking to instalation of fonts svn path=/trunk/KDE/kdebase/konsole/; revision=424611 --- konsole/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/konsole/main.cpp b/konsole/main.cpp index e38728b2..70c0d5f0 100644 --- a/konsole/main.cpp +++ b/konsole/main.cpp @@ -628,11 +628,13 @@ extern "C" int KDE_EXPORT kdemain(int argc, char* argv[]) KGuiItem( i18n("&Install" ) ), KStdGuiItem::no(), "installbdffonts" ) == KMessageBox::Yes ) { - // We are currently ignoring errors.... for ( QStringList::iterator it = sl_installFonts.begin(); it != sl_installFonts.end(); ++it ) { QString sf = "fonts/" + *it; - KIO::NetAccess::copy( locate( "appdata", sf ), "fonts:/Personal/", 0 ); + if ( !KIO::NetAccess::copy( locate( "appdata", sf ), + "fonts:/Personal/", 0 ) ) + KMessageBox::error( 0, i18n( "Could not install %1 into fonts:/Personal/" ).arg( *it ), i18n( "Error" ) ); + } }