mirror of
https://github.com/YACReader/yacreader
synced 2025-07-22 15:04:40 -04:00
corregido problema de lag con "check new version"
corregido bug que causaba que las marcas de leidos no se viesen bajo determinadas circustancias sincronizadas los sliders de ajustar a lo ancho corregido bug que causaba que los mensajes isCover e isLast no se mostrasen en modo de doble p?gina
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
#define PREVIOUS_VERSION "5.0.0"
|
||||
|
||||
HttpVersionChecker::HttpVersionChecker()
|
||||
:QWidget()
|
||||
:QThread()
|
||||
{
|
||||
http = new QHttp(this);
|
||||
|
||||
@ -22,6 +22,12 @@ HttpVersionChecker::HttpVersionChecker()
|
||||
}
|
||||
|
||||
void HttpVersionChecker::get()
|
||||
{
|
||||
this->start();
|
||||
|
||||
}
|
||||
|
||||
void HttpVersionChecker::run()
|
||||
{
|
||||
QUrl url("http://code.google.com/p/yacreader/downloads/list");
|
||||
QHttp::ConnectionMode mode = QHttp::ConnectionModeHttp;
|
||||
@ -30,6 +36,7 @@ void HttpVersionChecker::get()
|
||||
if (path.isEmpty())
|
||||
path = "/";
|
||||
httpGetId = http->get(path, 0);
|
||||
exec();
|
||||
}
|
||||
void HttpVersionChecker::readResponseHeader(const QHttpResponseHeader &responseHeader)
|
||||
{
|
||||
@ -48,6 +55,7 @@ void HttpVersionChecker::httpRequestFinished(int requestId, bool error)
|
||||
QString response(content);
|
||||
#endif
|
||||
checkNewVersion(response);
|
||||
exit();
|
||||
}
|
||||
|
||||
//TODO escribir prueba unitaria
|
||||
|
Reference in New Issue
Block a user