From 5309d73628b988e191ac99eb749bf562c9edbbf0 Mon Sep 17 00:00:00 2001 From: Dominik Wenger Date: Sat, 14 Jul 2007 20:28:21 +0000 Subject: rbutil caches no the preview images of the themes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13894 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/rbutilCtrls.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'rbutil/rbutilCtrls.cpp') 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; -- cgit v1.2.3