Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/slic3r/GUI/NotificationManager.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slic3r/GUI/NotificationManager.cpp b/src/slic3r/GUI/NotificationManager.cpp
index 6e9bc267f..09e2ec7cd 100644
--- a/src/slic3r/GUI/NotificationManager.cpp
+++ b/src/slic3r/GUI/NotificationManager.cpp
@@ -1609,7 +1609,10 @@ void NotificationManager::push_upload_job_notification(int id, float filesize,
return;
}
}
- std::string text = PrintHostUploadNotification::get_upload_job_text(id, filename, host);
+ // filename is created from boost::filesystem::path.string() which if created by path / "file" return \\ as folder division. But could also contain / as folder division. Lets unite this into "/" only.
+ std::string correct_filename(filename);
+ std::replace(correct_filename.begin(), correct_filename.end(), '\\', '/');
+ std::string text = PrintHostUploadNotification::get_upload_job_text(id, correct_filename, host);
NotificationData data{ NotificationType::PrintHostUpload, NotificationLevel::ProgressBarNotificationLevel, 10, text };
push_notification_data(std::make_unique<NotificationManager::PrintHostUploadNotification>(data, m_id_provider, m_evt_handler, 0, id, filesize), 0);
}