summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2007-07-14 20:28:21 +0000
committerDominik Wenger <domonoky@googlemail.com>2007-07-14 20:28:21 +0000
commit5309d73628b988e191ac99eb749bf562c9edbbf0 (patch)
tree77b3b8785c4ada4a93ad02292757adfb7ea52399 /rbutil
parent8235efbf1a4773aa4b02945a243e601057e13060 (diff)
rbutil caches no the preview images of the themes.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13894 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilCtrls.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/rbutil/rbutilCtrls.cpp b/rbutil/rbutilCtrls.cpp
index 612491a791..fdede634d3 100644
--- a/rbutil/rbutilCtrls.cpp
+++ b/rbutil/rbutilCtrls.cpp
@@ -263,10 +263,13 @@ void ThemeCtrl::ThemePreview()
dest = gv->stdpaths->GetUserDataDir() + wxT("" PATH_SEP "download" PATH_SEP)
+ m_currentResolution + wxT("" PATH_SEP) + filename;
- if(DownloadURL(src, dest))
+ if(!wxFileExists(dest))
{
- MESG_DIALOG(wxT("Unable to download image."));
- return;
+ if(DownloadURL(src, dest))
+ {
+ MESG_DIALOG(wxT("Unable to download image."));
+ return;
+ }
}
m_currentimage = dest;