mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-01 15:24:13 +02:00
Merge pull request #1171 from ispyisail/fix/template-placed-under-cursor
Fix templates landing far from the cursor
This commit is contained in:
@@ -2088,6 +2088,10 @@ void DiagramView::createTemplateFromSelection()
|
||||
file.close();
|
||||
qDebug() << "Template successfully saved to:" << full_path;
|
||||
|
||||
// List it right away, not only after the collections are reloaded
|
||||
for (QETDiagramEditor *qde : QETApp::diagramEditors())
|
||||
qde->templateSaved(template_location);
|
||||
|
||||
QMessageBox::information(this, tr("Modèle enregistré"),
|
||||
tr("Le modèle a été enregistré avec succès sous :\n%1").arg(full_path));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user