Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Don't use the last-used ffmpeg path if it doesn't work
Dmitry Kazakov0d0aa353612a
diff --git a/libs/ui/animation/KisDlgAnimationRenderer.cpp b/libs/ui/animation/KisDlgAnimationRenderer.cppindex abe587f30f..ff9ffb83d2 100644--- a/libs/ui/animation/KisDlgAnimationRenderer.cpp+++ b/libs/ui/animation/KisDlgAnimationRenderer.cpp@@ -155,12 +155,12 @@ void KisDlgAnimationRenderer::initializeRenderSettings(const KisDocument &doc, c// Check known ffmpeg locations..QString likelyFFmpegPath = [&]() {// Check last used- if (!lastUsedOptions.ffmpegPath.isEmpty()) {+ if (!lastUsedOptions.ffmpegPath.isEmpty() && QFileInfo(lastUsedOptions.ffmpegPath).isExecutable()) {return lastUsedOptions.ffmpegPath;}// Check krita config- if (!cfgFFmpegPath.isEmpty()) {+ if (!cfgFFmpegPath.isEmpty() && QFileInfo(cfgFFmpegPath).isExecutable()) {return cfgFFmpegPath;}