Showing the changes to interface/src/Bookmarks.cpp (1 of 42 files). Show all
Unified · Split
| @@ -62,7 +62,7 @@ void Bookmarks::addBookmarkToFile(const QString& bookmarkName, const QVariant& b · 61 unmodified lines | ||
| 62 | 62 | "The bookmark name you entered already exists in your list.", |
| 63 | 63 | QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes); |
| 64 | 64 | dlg->setProperty("informativeText", "Would you like to overwrite it?"); |
| 65 | − QObject::connect(dlg, &ModalDialogListener::response, this, [=] (QVariant answer) { | |
| 65 | + QObject::connect(dlg, &ModalDialogListener::response, this, [=, this] (QVariant answer) { | |
| 66 | 66 | QObject::disconnect(dlg, &ModalDialogListener::response, this, nullptr); |
| 67 | 67 | |
| 68 | 68 | if (QMessageBox::Yes == static_cast<QMessageBox::StandardButton>(answer.toInt())) { |