@@ -37,7 +37,8 @@ void DatabaseWidget::Prefill(const DatabaseEditRequest& request) {
3737
3838 if (request.config .vectorProject .size () != 0 ) {
3939 projects.push_back (request.config .vectorProject );
40- vector_project_label->setText (shortAssetName (request.config .vectorProject ));
40+ std::string san = shortAssetName (request.config .vectorProject );
41+ vector_project_label->setText (san.c_str ());
4142 } else {
4243 vector_project_label->setText (empty_text);
4344 }
@@ -49,14 +50,16 @@ void DatabaseWidget::Prefill(const DatabaseEditRequest& request) {
4950 } else {
5051 if (request.config .imageryProject .size () != 0 ) {
5152 projects.push_back (request.config .imageryProject );
52- imagery_project_label->setText (shortAssetName (request.config .imageryProject ));
53+ std::string san = shortAssetName (request.config .imageryProject );
54+ imagery_project_label->setText (san.c_str ());
5355 } else {
5456 imagery_project_label->setText (empty_text);
5557 }
5658
5759 if (request.config .terrainProject .size () != 0 ) {
5860 projects.push_back (request.config .terrainProject );
59- terrain_project_label->setText (shortAssetName (request.config .terrainProject ));
61+ std::string san = shortAssetName (request.config .terrainProject );
62+ terrain_project_label->setText (san.c_str ());
6063 } else {
6164 terrain_project_label->setText (empty_text);
6265 }
@@ -97,7 +100,8 @@ void DatabaseWidget::ChooseVectorProject() {
97100 if (!chooser.getFullPath (newpath))
98101 return ;
99102
100- vector_project_label->setText (shortAssetName (newpath));
103+ std::string san = shortAssetName (newpath);
104+ vector_project_label->setText (san.c_str ());
101105}
102106
103107void DatabaseWidget::ChooseImageryProject () {
@@ -110,7 +114,8 @@ void DatabaseWidget::ChooseImageryProject() {
110114 if (!chooser.getFullPath (newpath))
111115 return ;
112116
113- imagery_project_label->setText (shortAssetName (newpath));
117+ std::string san = shortAssetName (newpath);
118+ imagery_project_label->setText (san.c_str ());
114119}
115120
116121void DatabaseWidget::ChooseTerrainProject () {
@@ -122,8 +127,8 @@ void DatabaseWidget::ChooseTerrainProject() {
122127 QString newpath;
123128 if (!chooser.getFullPath (newpath))
124129 return ;
125-
126- terrain_project_label->setText (shortAssetName (newpath ));
130+ std::string san = shortAssetName (newpath);
131+ terrain_project_label->setText (san. c_str ( ));
127132}
128133
129134void DatabaseWidget::ClearVectorProject () {
0 commit comments