Skip to content

Commit

Permalink
Fixed: unable to manually change current Replay Server
Browse files Browse the repository at this point in the history
Removed: unused code
Updated: all translations
  • Loading branch information
Aztorius committed Aug 18, 2016
1 parent 0e208fb commit d123134
Show file tree
Hide file tree
Showing 11 changed files with 446 additions and 485 deletions.
22 changes: 4 additions & 18 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1157,32 +1157,18 @@ void MainWindow::slot_replayserversAdd()
return;
}

QFile localserversfile(":/data/LegendsReplayServers.txt");

if(!localserversfile.open(QIODevice::ReadOnly | QIODevice::Text)){
log(tr("[ERROR] Unable to open internal servers file : ") + localserversfile.errorString());
if(lrservers.contains(ui->lineEdit_replayserver_address->text())){
return;
}

QTextStream local_in(&localserversfile);

lrservers.clear();

while(!local_in.atEnd()){
QString line = local_in.readLine();
if(!line.isEmpty()){
lrservers.append(line);
}
}

localserversfile.close();

lrservers.append(ui->lineEdit_replayserver_address->text());

ui->tableWidget_replayservers->insertRow(ui->tableWidget_replayservers->rowCount());
ui->tableWidget_replayservers->setItem(ui->tableWidget_replayservers->rowCount()-1, 0, new QTableWidgetItem(ui->lineEdit_replayserver_address->text()));

ui->lineEdit_replayserver_address->clear();

networkManager_replayServers->get(QNetworkRequest(QUrl(lrservers.first())));
}

void MainWindow::slot_summonerinfos_save()
Expand Down Expand Up @@ -1926,7 +1912,7 @@ void MainWindow::slot_click_replayservers()
return;
}

m_currentLegendsReplayServer = ui->tableWidget_replayservers->itemAt(ui->tableWidget_replayservers->selectedItems().first()->row(), 0)->text();
m_currentLegendsReplayServer = ui->tableWidget_replayservers->item(ui->tableWidget_replayservers->selectedItems().first()->row(), 0)->text();

log(tr("Legends Replay switch to server ") + m_currentLegendsReplayServer);
}
Expand Down
Binary file modified src/translation/legendsreplay_deutch.qm
Binary file not shown.
183 changes: 89 additions & 94 deletions src/translation/legendsreplay_deutch.ts

Large diffs are not rendered by default.

Binary file modified src/translation/legendsreplay_english.qm
Binary file not shown.
Loading

0 comments on commit d123134

Please sign in to comment.