Author: tgoettlicher Date: Tue Nov 6 10:24:00 2007 New Revision: 41811 URL: http://svn.opensuse.org/viewcvs/yast?rev=41811&view=rev Log: fixed broken accented characters in repository list in qt packager widget (#329894) Modified: branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgRepoList.cc branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgVersionsView.cc Modified: branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgRepoList.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgRepoList.cc?rev=41811&r1=41810&r2=41811&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgRepoList.cc (original) +++ branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgRepoList.cc Tue Nov 6 10:24:00 2007 @@ -225,16 +225,19 @@ { if ( nameCol() >= 0 ) { - string name; - ZyppProduct product = singleProduct( _zyppRepo ); + string name = repo.info().name(); - if ( product ) // only if the repository provides exactly one product - { // (which is the most common case) - name = product->summary(); - } +#if SHOW_SINGLE_PRODUCT + ZyppProduct product = singleProduct( _zyppRepo ); + + if ( product ) // only if the repository provides exactly one product + { // (which is the most common case) + name = product->summary(); + } +#endif if ( ! name.empty() ) - setText( nameCol(), name.c_str() ); + setText( nameCol(), fromUTF8( name )); } if ( urlCol() >= 0 ) Modified: branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgVersionsView.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgVersionsView.cc?rev=41811&r1=41810&r2=41811&view=diff ============================================================================== --- branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgVersionsView.cc (original) +++ branches/tmp/sh/mod-ui/qt/src/pkg/YQPkgVersionsView.cc Tue Nov 6 10:24:00 2007 @@ -250,7 +250,8 @@ if ( versionCol() >= 0 ) setText( versionCol(), zyppObj->edition().asString().c_str() ); if ( archCol() >= 0 ) setText( archCol(), zyppObj->arch().asString().c_str() ); - if ( repoCol() >= 0 ) setText( repoCol(), zyppObj->repository().info().alias().c_str() ); +// if ( repoCol() >= 0 ) setText( repoCol(), zyppObj->repository().info().alias().c_str() ); + if ( repoCol() >= 0 ) setText( repoCol(), fromUTF8(zyppObj->repository().info().alias()) ); if ( productCol() >= 0 ) { ZyppProduct product = YQPkgRepoListItem::singleProduct( zyppObj->repository() ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org