-rw-r--r-- | core/launcher/launcherview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 047fe45..c2bde53 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -698,17 +698,17 @@ void LauncherView::setBackgroundType( BackgroundType t, const QString &val ) | |||
698 | 698 | ||
699 | case Image: | 699 | case Image: |
700 | bgName = val; | 700 | bgName = val; |
701 | if ( bgCache->contains( bgName ) ) { | 701 | if ( bgCache->contains( bgName ) ) { |
702 | (*bgCache)[bgName]->ref++; | 702 | (*bgCache)[bgName]->ref++; |
703 | icons->setBackgroundPixmap( (*bgCache)[bgName]->pm ); | 703 | icons->setBackgroundPixmap( (*bgCache)[bgName]->pm ); |
704 | } else { | 704 | } else { |
705 | qDebug( "Loading image: %s", val.latin1() ); | 705 | qDebug( "Loading image: %s", val.latin1() ); |
706 | QPixmap bg( Resource::loadPixmap( "wallpaper/" + val ) ); | 706 | QPixmap bg( Resource::loadPixmap( val ) ); |
707 | if ( bg.isNull() ) { | 707 | if ( bg.isNull() ) { |
708 | QImageIO imgio; | 708 | QImageIO imgio; |
709 | imgio.setFileName( bgName ); | 709 | imgio.setFileName( bgName ); |
710 | QSize ds = qApp->desktop()->size(); | 710 | QSize ds = qApp->desktop()->size(); |
711 | QString param( "Scale( %1, %2, ScaleMin )" ); // No tr | 711 | QString param( "Scale( %1, %2, ScaleMin )" ); // No tr |
712 | imgio.setParameters( param.arg(ds.width()).arg(ds.height()).latin1() ); | 712 | imgio.setParameters( param.arg(ds.width()).arg(ds.height()).latin1() ); |
713 | imgio.read(); | 713 | imgio.read(); |
714 | bg = imgio.image(); | 714 | bg = imgio.image(); |