another travis fix

This commit is contained in:
Anon 2016-09-10 23:27:04 -05:00
parent 6fc4349b91
commit 21d2a90b89

View File

@ -190,7 +190,8 @@ QDialogEx::QDialogEx(QWidget *parent) :
auto buttonCancel = new QPushButton(); auto buttonCancel = new QPushButton();
buttonCancel->setText("Cancel"); buttonCancel->setText("Cancel");
connect(buttonOk, &QPushButton::released, this, [=]() { connect(buttonOk, &QPushButton::released, this, [=]() {
if (typeSelect->currentIndex() == 0 && Common::Trim(nameblock->text().toStdString()).length() > 0) { auto name = nameblock->text().toStdString();
if (typeSelect->currentIndex() == 0 && Common::Trim(name).length() > 0) {
return_value = std::make_shared<CheatEngine::GatewayCheat>(std::vector<CheatEngine::CheatLine>(), std::vector<std::string>(), false, nameblock->text().toStdString()); return_value = std::make_shared<CheatEngine::GatewayCheat>(std::vector<CheatEngine::CheatLine>(), std::vector<std::string>(), false, nameblock->text().toStdString());
} }
ui->close(); ui->close();