fix duplication of dialogues
This commit is contained in:
parent
b4f153888c
commit
6b24485cf0
@ -154,7 +154,7 @@ void MainWindow::loadStep(Step s) {
|
||||
ui->responseSpin->setValue(s.getResponse());
|
||||
|
||||
for(int i = 0; i < s.getTexte().length(); i++) {
|
||||
QString q = s.getPersonnage().at(i) + ": " + s.getTexte().at(i);
|
||||
QString q = "[" + s.getPersonnage().at(i) + "] : " + s.getTexte().at(i);
|
||||
ui->dialogEdit->appendPlainText(q);
|
||||
}
|
||||
}
|
||||
@ -650,14 +650,13 @@ void MainWindow::on_pathNumber_valueChanged(int arg1)
|
||||
|
||||
void MainWindow::on_stepNumber_valueChanged(int arg1)
|
||||
{
|
||||
on_validateBtn_clicked();
|
||||
ui->dialogEdit->clear();
|
||||
this->loadStep(currentPath->getStep().at(arg1-1));
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_validateBtn_clicked()
|
||||
{
|
||||
std::cout << "ok" << std::endl;
|
||||
this->currentPath->setName(ui->titleEdit->text());
|
||||
this->currentPath->setCity(ui->locEdit->text());
|
||||
this->currentPath->setImage(ui->imagePath->text());
|
||||
@ -1036,3 +1035,6 @@ void MainWindow::on_addStep_clicked()
|
||||
{
|
||||
this->addNewStep();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user