forked from qt-creator/qt-creator
CompilerExplorer: Fix undo
Fixes context handling for the Editor. This allows Undo/Redo actions to activate correctly. Change-Id: Ieb7fa27215f5746cf5f26e8e7b3b74f44023481c Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
|
||||
auto action = new QAction(Tr::tr("Open Compiler Explorer"), this);
|
||||
connect(action, &QAction::triggered, this, [] {
|
||||
QString name("Compiler Explorer");
|
||||
QString name("Compiler Explorer $");
|
||||
Core::EditorManager::openEditorWithContents(Constants::CE_EDITOR_ID,
|
||||
&name,
|
||||
settings().defaultDocument().toUtf8());
|
||||
|
||||
Reference in New Issue
Block a user