Before, the supplied infoMessage was ignored (unnamed parameter)
and instead the local variable infoMessage was used, which was
empty. For this reason, the cause of the error never showed.
{
const QString errorMessage(
QString("Failed to load file %1").arg(file_name));
- const QString infoMessage;
try {
if (format)
update_device_list();
- session_.start_capture([&, errorMessage, infoMessage](QString) {
+ session_.start_capture([&, errorMessage](QString infoMessage) {
session_error(errorMessage, infoMessage); });
}