[libcalamaresui] try with upstream fix

This commit is contained in:
Philip 2016-10-31 17:55:19 +01:00
parent 5bbb71e90e
commit e2f26467ab

View File

@ -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 );