Skip to content

Commit

Permalink
change some lambdas
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisGoosen committed Sep 19, 2024
1 parent fa5637d commit d6ada8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Desktop/modules/dynamicmodules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ bool DynamicModules::initializeModule(DynamicModule * module)
connect(module, &DynamicModule::registerForInstalling, this, &DynamicModules::registerForInstalling );
connect(module, &DynamicModule::registerForInstallingModPkg, this, &DynamicModules::registerForInstallingModPkg );
connect(module, &DynamicModule::descriptionReloaded, this, &DynamicModules::descriptionReloaded );
connect(module, &DynamicModule::statusChanged, module, [=]()
connect(module, &DynamicModule::statusChanged, module, [this, module, moduleName]()
{
if(module->status() == moduleStatus::error)
{
_modulesInstallPackagesNeeded.erase(moduleName);
QTimer::singleShot(0, module, [=](){ uninstallModule(moduleName); });
QTimer::singleShot(0, module, [this, moduleName](){ uninstallModule(moduleName); });
}
});

Expand Down

0 comments on commit d6ada8f

Please sign in to comment.