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 crash in KisTagSelectionWidget on Qt6
Luna Lovecraft7f08cc590c94
diff --git a/libs/widgets/KisTagSelectionWidget.cpp b/libs/widgets/KisTagSelectionWidget.cppindex aadc9ed415..3c85690136 100644--- a/libs/widgets/KisTagSelectionWidget.cpp+++ b/libs/widgets/KisTagSelectionWidget.cpp@@ -50,7 +50,7 @@ WdgCloseableLabel::WdgCloseableLabel(KoID tag, bool editable, bool semiSelected,m_textLabel->setText(tag.name());m_textLabel->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);layout->addWidget(m_textLabel);- layout->insertStretch(2, 1);+if (m_editable) {m_closeIconLabel = new QPushButton(parent);m_closeIconLabel->setFlat(true);