summaryrefslogtreecommitdiff
path: root/rbutil
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/installthemes.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/installthemes.cpp b/rbutil/rbutilqt/installthemes.cpp
index 7dd765627b..5422338dd6 100644
--- a/rbutil/rbutilqt/installthemes.cpp
+++ b/rbutil/rbutilqt/installthemes.cpp
@@ -32,6 +32,7 @@ ThemesInstallWindow::ThemesInstallWindow(QWidget *parent) : QDialog(parent)
32 ui.listThemes->setSelectionMode(QAbstractItemView::ExtendedSelection); 32 ui.listThemes->setSelectionMode(QAbstractItemView::ExtendedSelection);
33 ui.themePreview->clear(); 33 ui.themePreview->clear();
34 ui.themePreview->setText(tr("no theme selected")); 34 ui.themePreview->setText(tr("no theme selected"));
35 currentItem = -1;
35 36
36 connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close())); 37 connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(close()));
37 connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept())); 38 connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
@@ -51,7 +52,7 @@ void ThemesInstallWindow::downloadInfo()
51{ 52{
52 // try to get the current build information 53 // try to get the current build information
53 getter = new HttpGet(this); 54 getter = new HttpGet(this);
54 55
55 qDebug() << "downloading themes info"; 56 qDebug() << "downloading themes info";
56 themesInfo.open(); 57 themesInfo.open();
57 qDebug() << "file:" << themesInfo.fileName(); 58 qDebug() << "file:" << themesInfo.fileName();
@@ -198,7 +199,12 @@ void ThemesInstallWindow::updateImage(bool error)
198{ 199{
199 qDebug() << "updateImage(bool) =" << error; 200 qDebug() << "updateImage(bool) =" << error;
200 201
201 if(error) return; 202 if(error) {
203 ui.themePreview->clear();
204 ui.themePreview->setText(tr("Retrieving theme preview failed.\n"
205 "HTTP response code: %1").arg(igetter.httpResponse()));
206 return;
207 }
202 208
203 QPixmap p; 209 QPixmap p;
204 if(!error) { 210 if(!error) {