Skip to content
Snippets Groups Projects
Commit 1a39d2a6 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Always provide this as context for a signal connection with a lambda.

parent b75b13b4
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,8 @@ DebugWindow::DebugWindow() ...@@ -43,7 +43,8 @@ DebugWindow::DebugWindow()
globalStorageView->setModel( jsonModel ); globalStorageView->setModel( jsonModel );
GlobalStorage* gs = JobQueue::instance()->globalStorage(); GlobalStorage* gs = JobQueue::instance()->globalStorage();
connect( gs, &GlobalStorage::changed, [ = ] connect( gs, &GlobalStorage::changed,
this, [ = ]
{ {
jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() ); jsonModel->loadJson( QJsonDocument::fromVariant( gs->m ).toJson() );
globalStorageView->expandAll(); globalStorageView->expandAll();
...@@ -54,7 +55,7 @@ DebugWindow::DebugWindow() ...@@ -54,7 +55,7 @@ DebugWindow::DebugWindow()
// JobQueue page // JobQueue page
jobQueueText->setReadOnly( true ); jobQueueText->setReadOnly( true );
connect( JobQueue::instance(), &JobQueue::queueChanged, connect( JobQueue::instance(), &JobQueue::queueChanged,
[ this ]( const QList< Calamares::job_ptr >& jobs ) this, [ this ]( const QList< Calamares::job_ptr >& jobs )
{ {
QStringList text; QStringList text;
foreach( auto job, jobs ) foreach( auto job, jobs )
...@@ -79,7 +80,7 @@ DebugWindow::DebugWindow() ...@@ -79,7 +80,7 @@ DebugWindow::DebugWindow()
moduleConfigView->setModel( moduleConfigModel ); moduleConfigView->setModel( moduleConfigModel );
connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged, connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged,
[ this, moduleConfigModel ] this, [ this, moduleConfigModel ]
{ {
QString moduleName = modulesListView->currentIndex().data().toString(); QString moduleName = modulesListView->currentIndex().data().toString();
Module* module = ModuleManager::instance()->module( moduleName ); Module* module = ModuleManager::instance()->module( moduleName );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment