Skip to content

armgit / krita

Public Imported from GitHub
0

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++

Fix issue in 'Render Animation' dialog

Mathias Weinafc124763282
diff --git a/libs/ui/animation/KisDlgAnimationRenderer.cpp b/libs/ui/animation/KisDlgAnimationRenderer.cpp
index e8e64ff620..d56f3413b1 100644
--- a/libs/ui/animation/KisDlgAnimationRenderer.cpp
+++ b/libs/ui/animation/KisDlgAnimationRenderer.cpp
@@ -1072,21 +1072,28 @@ void KisDlgAnimationRenderer::slotExportTypeChanged()
m_page->stkExport->setCurrentWidget(m_page->pgImages);
}
#else
- // if a video format needs to be outputted
- if (m_page->shouldExportOnlyVideo->isChecked()) {
- // videos always uses PNG for creating video, so disable the ability to change the format
- m_page->cmbMimetype->setEnabled(false);
- m_page->cmbMimetype->setCurrentIndex(m_page->cmbMimetype->findData("image/png"));
- }
-
/**
* A fallback fix for a case when both checkboxes are unchecked
*/
if (!m_page->shouldExportOnlyVideo->isChecked() &&
!m_page->shouldExportOnlyImageSequence->isChecked()) {
- KisSignalsBlocker b(m_page->shouldExportOnlyImageSequence);
- m_page->shouldExportOnlyImageSequence->setChecked(true);
+ if (sender() == m_page->shouldExportOnlyVideo) {
+ KisSignalsBlocker b(m_page->shouldExportOnlyVideo);
+ m_page->shouldExportOnlyVideo->setChecked(true);
+ } else {
+ KisSignalsBlocker b(m_page->shouldExportOnlyImageSequence);
+ m_page->shouldExportOnlyImageSequence->setChecked(true);
+ }
+ }
+
+ // if a video format needs to be outputted
+ if (m_page->shouldExportOnlyVideo->isChecked()) {
+ // videos always uses PNG for creating video, so disable the ability to change the format
+ m_page->cmbMimetype->setEnabled(false);
+ m_page->cmbMimetype->setCurrentIndex(m_page->cmbMimetype->findData("image/png"));
+ } else {
+ m_page->cmbMimetype->setEnabled(true);
}
#endif