706,7 → 706,14 |
void MainWindow::on_sql_mogel_dataChanged ( const QModelIndex & topLeft, const QModelIndex & bottomRight ){ // èçìåíèëè ñâîéñòâà îáúåêòà èëè äîáàâèëè íîâûé îáúåêò |
int i; |
i++; |
if ((topLeft == bottomRight) && (boolFieldsIndexes_global.indexOf(topLeft.column() != -1))) return; |
if ((topLeft == bottomRight) && (boolFieldsIndexes_global.indexOf(topLeft.column()) != -1)) |
{ |
ui->pushButton_3->setEnabled(false); |
ui->pushButton_4->setEnabled(false); |
return; |
} |
|
|
ui->pushButton_3->setEnabled(true); |
ui->pushButton_4->setEnabled(true); |
|