From 1e3cb2f0531c9c9b22fddff1be173cdb08afc56b Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 31 Jul 2017 21:32:42 +0200 Subject: [PATCH] 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 866785592844dda56bcd5d77700b0ab9bfafa5fd. --- src/mkvtoolnix-gui/jobs/tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkvtoolnix-gui/jobs/tool.cpp b/src/mkvtoolnix-gui/jobs/tool.cpp index 6a3e4baf1..a3843826d 100644 --- a/src/mkvtoolnix-gui/jobs/tool.cpp +++ b/src/mkvtoolnix-gui/jobs/tool.cpp @@ -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)