RunOnObject: accept pointers to member functions

This commit is contained in:
Michael M 2017-09-15 09:08:09 -07:00
commit 7f812a7a03
2 changed files with 7 additions and 1 deletions

View file

@ -524,7 +524,7 @@ void NetPlayDialog::OnTraversalError(TraversalClient::FailureReason error)
bool NetPlayDialog::IsRecording()
{
return RunOnObject(this, [this] { return m_record_input_box->isChecked(); });
return RunOnObject(m_record_input_box, &QCheckBox::isChecked);
}
std::string NetPlayDialog::FindGame(const std::string& game)