Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the possibility to add call sign in the filename if exist ? #37

Open
mrousse83 opened this issue Jul 30, 2023 · 2 comments
Open

Add the possibility to add call sign in the filename if exist ? #37

mrousse83 opened this issue Jul 30, 2023 · 2 comments

Comments

@mrousse83
Copy link

mrousse83 commented Jul 30, 2023

Hello,

Thanks for this great app!

Can you add the possibility to add the "call sign" in the file name if exist ?

Because when the callsign is not present in the picture, it's impossible to know who as send this picture.

Thanks in advance !

Regards,
Mathieu

@barrydegraaff
Copy link
Contributor

I would like this feature as well, I looked into developing this, but there is a sequence in the code and basically the file is written to disk, and when the application knows the FSKID, it no longer knows what file it wrote.

I do not see an easy fix.

@f1ixx
Copy link

f1ixx commented Jun 25, 2024

Hello

Longtime ago, i make some change in source (filename format, add mode received picture)
But, haved same idea but haven't found some thing in past date.
I read you issue and i'm re-read code. I'm not codder and possible i add bug(s)
with my modification. So i'm sorry if don't work, simply erase my solution.

I'm make this :
in src/appglobal.h - line 73 add : extern QString oldFilename;

in src/appglobal.cpp - line 93 : QString oldFilename;

in src/dispatch/dispatcher.cpp - line 437 after line fileName = QString ....
add oldFilename = fileName;>/code>

in src/mainwidgets/rxwidget.cpp - line 220 add

if (oldFilename != "")
{
QString newFilename;
newFilename = oldFilename.mid(0, oldFilename.lastIndexOf('.')) + "_" + call.toUpper() +
oldFilename.mid(oldFilename.lastIndexOf('.'));
QFile::rename(oldFilename, newFilename);
oldFilename = "";
}

Hoping I haven't done more harm than good in the code.
And, again one time, if don't work and/or add bug(s) delete change.

73's
Boris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants