summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/command_pictures.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/command_pictures.cpp b/commands/command_pictures.cpp
index 66284fc86..7abe3636b 100644
--- a/commands/command_pictures.cpp
+++ b/commands/command_pictures.cpp
@@ -169,7 +169,8 @@ AddPictures::AddPictures(const std::vector<PictureListForAddition> &pictures) :
struct dive_site *ds = p.d->dive_site;
if (!ds) {
// This dive doesn't yet have a dive site -> add a new dive site.
- dive_site *ds = alloc_dive_site_with_gps("", &it->location);
+ QString name = Command::Base::tr("unnamed dive site");
+ dive_site *ds = alloc_dive_site_with_gps(qPrintable(name), &it->location);
sitesToAdd.emplace_back(ds);
sitesToSet.push_back({ p.d, ds });
} else if (!dive_site_has_gps_location(ds)) {