EffectMaker: confirm save changes before opening an composition

Change-Id: I05659e4cdeba5dc5f437d2fb99bc3768c6a1522d
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
This commit is contained in:
Mahmoud Badri
2023-12-12 15:15:15 +02:00
parent 9d8aa76b4c
commit d9774e7faf
4 changed files with 35 additions and 11 deletions

View File

@@ -7,17 +7,10 @@
#include "effectmakernodesmodel.h"
#include "effectmakerwidget.h"
#include "nodeinstanceview.h"
#include "qmldesignerconstants.h"
#include <coreplugin/icore.h>
#include <QQmlContext>
#include <QQmlEngine>
#include <QQuickItem>
#include <QQuickView>
#include <QTimer>
namespace EffectMaker {
EffectMakerContext::EffectMakerContext(QWidget *widget)
@@ -66,7 +59,7 @@ void EffectMakerView::customNotification([[maybe_unused]] const AbstractView *vi
{
if (identifier == "open_effectmaker_composition" && data.count() > 0) {
const QString compositionPath = data[0].toString();
m_widget->effectMakerModel()->openComposition(compositionPath);
m_widget->openComposition(compositionPath);
}
}