Skip to content

Commit

Permalink
Fixed #3330: Allow characters after dot in filename (#3333)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniruddha-Deb committed Sep 6, 2021
1 parent dad1ef7 commit d690146
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/control/jobs/SaveJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ auto SaveJob::save() -> bool {

doc->lock();
h.prepareSave(doc);
fs::path const filepath = doc->getFilepath();
fs::path filepath = doc->getFilepath();
doc->unlock();

auto const target = fs::path{filepath}.replace_extension(".xopp");
Util::clearExtensions(filepath, ".pdf");
auto const target = fs::path{filepath}.concat(".xopp");

if (doc->shouldCreateBackupOnSave()) {
try {
Expand Down

0 comments on commit d690146

Please sign in to comment.