diff options
Diffstat (limited to 'src/plugins/python/pythoneditor.cpp')
| -rw-r--r-- | src/plugins/python/pythoneditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/python/pythoneditor.cpp b/src/plugins/python/pythoneditor.cpp index f0e8acab46e..c3e9ec0c51c 100644 --- a/src/plugins/python/pythoneditor.cpp +++ b/src/plugins/python/pythoneditor.cpp @@ -63,9 +63,9 @@ static QAction *createAction(QObject *parent, ReplType type) break; } - QObject::connect(action, &QAction::triggered, parent, [type] { + QObject::connect(action, &QAction::triggered, parent, [type, parent] { Core::IDocument *doc = Core::EditorManager::currentDocument(); - openPythonRepl(doc ? doc->filePath() : Utils::FilePath(), type); + openPythonRepl(parent, doc ? doc->filePath() : Utils::FilePath(), type); }); return action; } |
