14 lines
824 B
Diff
14 lines
824 B
Diff
|
Index: b/src/slic3r/Utils/OctoPrint.cpp
|
||
|
===================================================================
|
||
|
--- a/src/slic3r/Utils/OctoPrint.cpp
|
||
|
+++ b/src/slic3r/Utils/OctoPrint.cpp
|
||
|
@@ -746,7 +746,7 @@ bool PrusaLink::get_storage(wxArrayStrin
|
||
|
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));
|