Author: sh-sh-sh Date: Thu Oct 16 16:15:38 2008 New Revision: 52303 URL: http://svn.opensuse.org/viewcvs/yast?rev=52303&view=rev Log: avoid bogus error message Modified: trunk/qt/src/QY2Styler.cc Modified: trunk/qt/src/QY2Styler.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/qt/src/QY2Styler.cc?rev=52303&r1=52302&r2=52303&view=diff ============================================================================== --- trunk/qt/src/QY2Styler.cc (original) +++ trunk/qt/src/QY2Styler.cc Thu Oct 16 16:15:38 2008 @@ -278,13 +278,20 @@ QImage image( back ); _backgrounds[ name ].pix = image; - if ( image.isNull() ) + if ( ! back.isEmpty() ) // Prevent misleading error messages { - yuiError() << "Couldn't load " << back << " for " << name << endl; - } - else - { - yuiDebug() << "Loading " << back << " for " << name << endl; + if ( image.isNull() ) + { + yuiError() << "Couldn't load background image \"" << back + << "\" for \"" << name << "\"" + << endl; + } + else + { + yuiDebug() << "Loading background image \"" << back + << "\" for " << name << "\"" + << endl; + } } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org