diff options
Diffstat (limited to 'rbutil/rbutilqt/installthemes.cpp')
-rw-r--r-- | rbutil/rbutilqt/installthemes.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/installthemes.cpp b/rbutil/rbutilqt/installthemes.cpp index 70a6ed6ec5..33bee10b42 100644 --- a/rbutil/rbutilqt/installthemes.cpp +++ b/rbutil/rbutilqt/installthemes.cpp | |||
@@ -77,6 +77,8 @@ void ThemesInstallWindow::downloadInfo() | |||
77 | qDebug() << "downloadInfo()" << url; | 77 | qDebug() << "downloadInfo()" << url; |
78 | qDebug() << url.queryItems(); | 78 | qDebug() << url.queryItems(); |
79 | getter->setProxy(proxy); | 79 | getter->setProxy(proxy); |
80 | if(userSettings->value("defaults/offline").toBool()) | ||
81 | getter->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString()); | ||
80 | getter->setFile(&themesInfo); | 82 | getter->setFile(&themesInfo); |
81 | getter->getFile(url); | 83 | getter->getFile(url); |
82 | } | 84 | } |
@@ -182,6 +184,8 @@ void ThemesInstallWindow::updateDetails(int row) | |||
182 | 184 | ||
183 | igetter.abort(); | 185 | igetter.abort(); |
184 | igetter.setProxy(proxy); | 186 | igetter.setProxy(proxy); |
187 | if(!userSettings->value("defaults/cachedisable").toBool()) | ||
188 | igetter.setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString()); | ||
185 | igetter.getFile(img); | 189 | igetter.getFile(img); |
186 | connect(&igetter, SIGNAL(done(bool)), this, SLOT(updateImage(bool))); | 190 | connect(&igetter, SIGNAL(done(bool)), this, SLOT(updateImage(bool))); |
187 | } | 191 | } |
@@ -294,6 +298,8 @@ void ThemesInstallWindow::accept() | |||
294 | installer->setLogSection(names); | 298 | installer->setLogSection(names); |
295 | installer->setLogVersion(version); | 299 | installer->setLogVersion(version); |
296 | installer->setMountPoint(mountPoint); | 300 | installer->setMountPoint(mountPoint); |
301 | if(!userSettings->value("defaults/cachedisable").toBool()) | ||
302 | installer->setCache(userSettings->value("defaults/cachepath", QDir::tempPath()).toString()); | ||
297 | installer->install(logger); | 303 | installer->install(logger); |
298 | connect(logger, SIGNAL(closed()), this, SLOT(close())); | 304 | connect(logger, SIGNAL(closed()), this, SLOT(close())); |
299 | } | 305 | } |