changeset 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 9893a8771a97
children 0678fdb81efc
files libgui/src/external-editor-interface.cc
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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)
       {