Improve ProjectDataBase use

This commit is contained in:
Claveau Joshua
2020-07-01 18:31:19 +02:00
parent 6652401d07
commit c86f9ccc3a
7 changed files with 159 additions and 57 deletions

View File

@@ -72,10 +72,8 @@ void QetGraphicsTableFactory::create(Diagram *diagram, AddTableDialog *dialog)
QetGraphicsTableItem::adjustTableToFolio(table_);
}
//Add new table if needed and option checked
dialog->addNewTableToNewDiagram();
qDebug() << "model " << table_->model();
table_->model()->rowCount();
table_->displayNRow();
if (dialog->addNewTableToNewDiagram() && table_->model()->rowCount() > table_->displayNRow())