fix GTK3 about dialog closure (#3892)

This commit is contained in:
Mike Gelfand 2022-10-07 10:25:03 -07:00 committed by GitHub
parent 5ba2186f1f
commit 32a1429047
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1331,6 +1331,7 @@ void Application::Impl::show_about_dialog()
d->signal_close_request().connect_notify([d]() mutable { d.reset(); });
#else
d->signal_delete_event().connect_notify([d](void* /*event*/) mutable { d.reset(); });
d->signal_response().connect_notify([&dref = *d](int /*response*/) { dref.close(); });
#endif
d->show();
}