forked from mirror/openmw-tes3mp
[Browser] Fix errors and warnings in MSVC
This commit is contained in:
parent
db75c4874c
commit
843a18f347
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@ bool NetController::downloadInfo(QAbstractItemModel *pModel, QModelIndex index)
|
|||
|
||||
if(index.isValid() && index.row() >= 0)
|
||||
{
|
||||
ServerData &sd = model->myData[index.row()];
|
||||
const ServerData &sd = model->myData[index.row()];
|
||||
while(true)
|
||||
{
|
||||
data = QString::fromStdString(httpNetwork.getData((QString("/api/servers/") + sd.addr).toLatin1()));
|
||||
|
@ -107,7 +107,7 @@ bool NetController::downloadInfo(QAbstractItemModel *pModel, QModelIndex index)
|
|||
}
|
||||
qDebug() << "Content for \"" << sd.addr << "\": " << data;
|
||||
|
||||
if(data == "bad request" or data == "not found") // TODO: if server is not registered we should download info directly from the server
|
||||
if(data == "bad request" || data == "not found") // TODO: if server is not registered we should download info directly from the server
|
||||
{
|
||||
qDebug() << "Server is not registered";
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue