GUI: fix compilation with generic lambdas, member function calls

gcc has a bug that it cannot determine the object to call member
functions on in a generic lambda:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61636

Therefore prefixing such calls with this-> is required.

Same issue as 8667855928.
This commit is contained in:
Moritz Bunkus 2017-07-31 21:32:42 +02:00
parent f212463f76
commit 1e3cb2f053

View File

@ -316,7 +316,7 @@ Tool::moveJobsUpOrDown(bool up) {
m_model->withSelectedJobsAsList(ui->jobs, [this, up](auto const &selectedJobs) {
m_model->moveJobsUpOrDown(selectedJobs, up);
selectJobs(selectedJobs);
this->selectJobs(selectedJobs);
});
if (focus)