We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0889dd commit 8ff9b04Copy full SHA for 8ff9b04
src/NotepadNext/NotepadNextApplication.cpp
@@ -341,8 +341,19 @@ void NotepadNextApplication::sendInfoToPrimaryInstance()
341
342
QByteArray buffer;
343
QDataStream stream(&buffer, QIODevice::WriteOnly);
344
+ QStringList argsToSend;
345
+ QStringList toFilter = parser.positionalArguments();
346
+ for (const QString &arg : arguments()) {
347
+ if (toFilter.contains(arg)) {
348
+ QFileInfo fileInfo(arg);
349
+ argsToSend.push_back(fileInfo.absoluteFilePath());
350
+ }
351
+ else {
352
+ argsToSend.push_back(arg);
353
354
355
- stream << arguments();
356
+ stream << argsToSend;
357
const bool success = sendMessage(buffer);
358
359
if (!success) {
0 commit comments