[libcalamaresui] try to fix issue with ‘pythonConsoleButton’ not declared in this scope

This commit is contained in:
Philip 2016-10-31 11:57:23 +01:00
parent f42e904dba
commit 5bbb71e90e

View File

@ -82,7 +82,7 @@ DebugWindow::DebugWindow()
moduleConfigView->setModel( moduleConfigModel );
#ifdef WITH_PYTHONQT
QPushButton* pythonConsoleButton = new QPushButton;
QPushButton* pythonConsoleButton = new QPushButton( this );
pythonConsoleButton->setText( "Attach Python console" );
modulesVerticalLayout->insertWidget( 1, pythonConsoleButton );
pythonConsoleButton->hide();
@ -149,8 +149,13 @@ DebugWindow::DebugWindow()
#endif
#ifdef WITH_PYTHONQT
connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged,
this, [ this, moduleConfigModel, pythonConsoleButton ]
#else
connect( modulesListView->selectionModel(), &QItemSelectionModel::selectionChanged,
this, [ this, moduleConfigModel ]
#endif
{
QString moduleName = modulesListView->currentIndex().data().toString();
Module* module = ModuleManager::instance()->moduleInstance( moduleName );