Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
c5d69236
Commit
c5d69236
authored
May 22, 2021
by
Rob Swindell
💬
Browse files
Don't abort the file-info edit prompts if no uploader name is entered
parent
c5bdb264
Pipeline
#2282
passed with stage
in 9 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/sbbs3/file.cpp
src/sbbs3/file.cpp
+4
-2
No files found.
src/sbbs3/file.cpp
View file @
c5d69236
...
...
@@ -346,9 +346,11 @@ bool sbbs_t::editfileinfo(file_t* f)
char
uploader
[
LEN_ALIAS
+
1
];
SAFECOPY
(
uploader
,
f
->
from
);
bputs
(
text
[
EditUploader
]);
if
(
!
getstr
(
uploader
,
sizeof
(
uploader
),
K_EDIT
|
K_AUTODEL
))
getstr
(
uploader
,
sizeof
(
uploader
),
K_EDIT
|
K_AUTODEL
);
if
(
msgabort
(
true
))
return
false
;
smb_new_hfield_str
(
f
,
SMB_FILEUPLOADER
,
uploader
);
if
(
*
uploader
!=
'\0'
||
*
f
->
from
!=
'\0'
)
smb_new_hfield_str
(
f
,
SMB_FILEUPLOADER
,
uploader
);
ultoa
(
f
->
cost
,
str
,
10
);
bputs
(
text
[
EditCreditValue
]);
getstr
(
str
,
10
,
K_NUMBER
|
K_EDIT
|
K_AUTODEL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment