Mercurial > octave
diff libgui/src/external-editor-interface.cc @ 29052:6ecc75589cbc stable
avoid deprecated QProcess::startDetached function
* external-editor-interface.cc
(external_editor_interface::call_custom_editor): Pass empty
QStringList object for arguments in call to QProcess::startDetached.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 12 Nov 2020 01:17:52 -0500 |
parents | bd51beb6205e |
children | 0a5b15007766 |
line wrap: on
line diff
--- a/libgui/src/external-editor-interface.cc Thu Nov 12 01:15:59 2020 -0500 +++ b/libgui/src/external-editor-interface.cc Thu Nov 12 01:17:52 2020 -0500 @@ -59,8 +59,10 @@ editor.replace ("%f", file); editor.replace ("%l", QString::number (line)); + QStringList arguments; + // start the process and check for success - bool started_ok = QProcess::startDetached (editor); + bool started_ok = QProcess::startDetached (editor, arguments); if (started_ok != true) {