File 0006-Fix-OctoPrint-string-type-mismatch.patch of Package SuperSlicer

From 109116bb87faa4553c43f7c655d420d911f4c75a Mon Sep 17 00:00:00 2001
From: Mia Herkt <mia@0x0.st>
Date: Tue, 17 Dec 2024 07:29:33 +0100
Subject: [PATCH 6/7] Fix OctoPrint string type mismatch

---
 src/slic3r/Utils/OctoPrint.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/slic3r/Utils/OctoPrint.cpp b/src/slic3r/Utils/OctoPrint.cpp
index c18a5567..2ed3a642 100644
--- a/src/slic3r/Utils/OctoPrint.cpp
+++ b/src/slic3r/Utils/OctoPrint.cpp
@@ -812,7 +812,7 @@ bool PrusaLink::get_storage(wxArrayString& storage_path, wxArrayString& storage_
                 if (path && (!available || *available)) {
                     StorageInfo si;
                     si.path = boost::nowide::widen(*path);
-                    si.name = name ? boost::nowide::widen(*name) : wxString();
+                    si.name = name ? wxString(boost::nowide::widen(*name)) : wxString();
                     // If read_only is missing, assume it is NOT read only.
                     // si.read_only = read_only ? *read_only : false; // version without "ro"
                     si.read_only = (read_only ? *read_only : (ro ? *ro : false));
-- 
2.47.1

openSUSE Build Service is sponsored by