Availability components check has been added

This commit is contained in:
Arin Alexander 2016-05-26 23:24:29 +04:00
parent c9d378a927
commit d595d76eb2

View File

@ -139,11 +139,14 @@ void TextItemEditor::initUI()
m_completer->setModel(new QStringListModel(dataWords,m_completer));
ui->gbSettings->setVisible(false);
connect(ui->twScriptEngine->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
if (ui->twScriptEngine->selectionModel()){
connect(ui->twScriptEngine->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, SLOT(slotScriptItemsSelectionChanged(QModelIndex,QModelIndex)));
}
BandDesignIntf* band = findParentBand();
if (band && !band->datasourceName().isEmpty()){
if (band && ui->twData->model() && !band->datasourceName().isEmpty()){
QModelIndexList nodes = ui->twData->model()->match(
ui->twData->model()->index(0,0),
Qt::DisplayRole,