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 a possible crash on image creation on Windows
Dmitry Kazakov7c6936880235
diff --git a/libs/ui/input/kis_input_manager_p.cpp b/libs/ui/input/kis_input_manager_p.cppindex b1f80cdaaa..813495d574 100644--- a/libs/ui/input/kis_input_manager_p.cpp+++ b/libs/ui/input/kis_input_manager_p.cpp@@ -828,6 +828,14 @@ void KisInputManager::Private::fixShortcutMatcherModifiersState(QVector<Qt::Key>}}+ /**+ * This function may be called from slotConfigChanged() from+ * the constructor of KisInputManager. It may theoretically+ * happen that we haven't recieved any sensible events to+ * set up the link to the input manager.+ */+ KisAbstractInputAction::setInputManager(q);+Q_FOREACH (Qt::Key key, danglingKeys) {QKeyEvent kevent(QEvent::KeyRelease, key, modifiers);processUnhandledEvent(&kevent);