From 21d2a90b8951537f7d6e7ad2530060ed8067857e Mon Sep 17 00:00:00 2001 From: Anon Date: Sat, 10 Sep 2016 23:27:04 -0500 Subject: [PATCH] another travis fix --- src/citra_qt/cheat_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/citra_qt/cheat_gui.cpp b/src/citra_qt/cheat_gui.cpp index d35268727..4cdc29ae5 100644 --- a/src/citra_qt/cheat_gui.cpp +++ b/src/citra_qt/cheat_gui.cpp @@ -190,7 +190,8 @@ QDialogEx::QDialogEx(QWidget *parent) : auto buttonCancel = new QPushButton(); buttonCancel->setText("Cancel"); 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(std::vector(), std::vector(), false, nameblock->text().toStdString()); } ui->close();