Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Fix effects tests

parent 55aebe29
......@@ -585,7 +585,7 @@ void Core::updateItemKeyframes(ObjectId id)
void Core::updateItemModel(ObjectId id, const QString &service)
{
if (!m_mainWindow->getCurrentTimeline()->loading && service.startsWith(QLatin1String("fade")) && id.first == ObjectType::TimelineClip) {
if (m_mainWindow && !m_mainWindow->getCurrentTimeline()->loading && service.startsWith(QLatin1String("fade")) && id.first == ObjectType::TimelineClip) {
bool startFade = service == QLatin1String("fadein") || service == QLatin1String("fade_from_black");
m_mainWindow->getCurrentTimeline()->controller()->updateClip(id.second, {startFade ? TimelineModel::FadeInRole : TimelineModel::FadeOutRole});
}
......
......@@ -32,7 +32,7 @@ TEST_CASE("Effects stack", "[Effects]")
QVector<QPair<QString, QString>> effects = EffectsRepository::get()->getNames();
REQUIRE(!effects.isEmpty());
anEffect = "qtblend";//effects.first().first;
anEffect = effects.first().first;
//qDebug()<<"// APPENDING EFFECT: "<<anEffect;
REQUIRE(!anEffect.isEmpty());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment