From e2f26467ab47319189b6b249957b40284e5f4745 Mon Sep 17 00:00:00 2001 From: Philip Date: Mon, 31 Oct 2016 17:55:19 +0100 Subject: [PATCH] [libcalamaresui] try with upstream fix --- src/libcalamaresui/utils/DebugWindow.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/libcalamaresui/utils/DebugWindow.cpp b/src/libcalamaresui/utils/DebugWindow.cpp index f202f6bdf..d4bc74f65 100644 --- a/src/libcalamaresui/utils/DebugWindow.cpp +++ b/src/libcalamaresui/utils/DebugWindow.cpp @@ -82,7 +82,7 @@ DebugWindow::DebugWindow() moduleConfigView->setModel( moduleConfigModel ); #ifdef WITH_PYTHONQT - QPushButton* pythonConsoleButton = new QPushButton( this ); + QPushButton* pythonConsoleButton = new QPushButton; pythonConsoleButton->setText( "Attach Python console" ); modulesVerticalLayout->insertWidget( 1, pythonConsoleButton ); pythonConsoleButton->hide(); @@ -149,13 +149,12 @@ DebugWindow::DebugWindow() #endif + connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged, + this, [ this, moduleConfigModel #ifdef WITH_PYTHONQT - connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged, - this, [ this, moduleConfigModel, pythonConsoleButton ] -#else - connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged, - this, [ this, moduleConfigModel ] + , pythonConsoleButton #endif + ] { QString moduleName = modulesListView->currentIndex().data().toString(); Module* module = ModuleManager::instance()->moduleInstance( moduleName );