summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/rbutilqt.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-13 18:42:11 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2013-01-13 18:48:28 +0100
commitd608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7 (patch)
tree695b0fa507f9e77f85f75116b8e77c12639f570a /rbutil/rbutilqt/rbutilqt.cpp
parent4307f95a1f57d3038a2d41f0f4c0ddf33f50630d (diff)
downloadrockbox-d608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7.tar.gz
rockbox-d608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7.tar.bz2
rockbox-d608fd604b4a3c0f0f9ba9dc3bcce7aae6c557f7.zip
Remove HttpGet::error() function.
This function returns an internal enum value of QHttp (which is also deprecated). It was only used for showing an error to the user / showing it in the system trace. Since it is an enum value it doesn't have much value. Log / show the error string instead. Change-Id: I54b9b6026969f8108f779b02a04477f0ad9201ab
Diffstat (limited to 'rbutil/rbutilqt/rbutilqt.cpp')
-rw-r--r--rbutil/rbutilqt/rbutilqt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/rbutilqt/rbutilqt.cpp b/rbutil/rbutilqt/rbutilqt.cpp
index 0cdd8365a0..0b94ba4c10 100644
--- a/rbutil/rbutilqt/rbutilqt.cpp
+++ b/rbutil/rbutilqt/rbutilqt.cpp
@@ -224,7 +224,7 @@ void RbUtilQt::downloadInfo()
void RbUtilQt::downloadDone(bool error)
{
if(error) {
- qDebug() << "[RbUtil] network error:" << daily->error();
+ qDebug() << "[RbUtil] network error:" << daily->errorString();
ui.statusbar->showMessage(tr("Can't get version information!"));
QMessageBox::critical(this, tr("Network error"),
tr("Can't get version information.\n"
@@ -232,7 +232,7 @@ void RbUtilQt::downloadDone(bool error)
.arg(daily->errorString()));
return;
}
- qDebug() << "[RbUtil] network status:" << daily->error();
+ qDebug() << "[RbUtil] network status:" << daily->errorString();
// read info into ServerInfo object
buildInfo.open();
@@ -655,7 +655,7 @@ void RbUtilQt::checkUpdate(void)
void RbUtilQt::downloadUpdateDone(bool error)
{
if(error) {
- qDebug() << "[RbUtil] network error:" << update->error();
+ qDebug() << "[RbUtil] network error:" << update->errorString();
}
else {
QString toParse(update->readAll());