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++
Remove switch back to shape selection tool when source editor is closed.
Wolthera van Hövell tot Westerflier380ed7fccf46
diff --git a/plugins/tools/svgtexttool/SvgTextTool.cpp b/plugins/tools/svgtexttool/SvgTextTool.cppindex dfa6761d09..35d8319754 100644--- a/plugins/tools/svgtexttool/SvgTextTool.cpp+++ b/plugins/tools/svgtexttool/SvgTextTool.cpp@@ -315,7 +315,6 @@ void SvgTextTool::showEditor()m_editor->setAttribute( Qt::WA_QuitOnClose, false );connect(m_editor, SIGNAL(textUpdated(KoSvgTextShape*,QString,QString)), SLOT(textUpdated(KoSvgTextShape*,QString,QString)));- connect(m_editor, SIGNAL(textEditorClosed()), SLOT(slotTextEditorClosed()));m_editor->activateWindow(); // raise on creation only}@@ -382,13 +381,6 @@ void SvgTextTool::insertRichText(KoSvgTextShape *richText, bool replaceLastGlyphm_textCursor.insertRichText(richText, true);}-void SvgTextTool::slotTextEditorClosed()-{- // change tools to the shape selection tool when we close the text editor to allow moving and further editing of the object.- // most of the time when we edit text, the shape selection tool is where we left off anyway- KoToolManager::instance()->switchToolRequested("InteractionTool");-}-QString SvgTextTool::generateDefs(const KoSvgTextProperties &properties){QStringList propStrings;diff --git a/plugins/tools/svgtexttool/SvgTextTool.h b/plugins/tools/svgtexttool/SvgTextTool.hindex 5a05e3ded7..8e7a0c9049 100644--- a/plugins/tools/svgtexttool/SvgTextTool.h+++ b/plugins/tools/svgtexttool/SvgTextTool.h@@ -108,7 +108,6 @@ private:private Q_SLOTS:void showEditor();- void slotTextEditorClosed();void textUpdated(KoSvgTextShape *shape, const QString &svg, const QString &defs);/**