Skip to content

Commit

Permalink
RemovableDriveManager.cpp: fix compatibility with newer Boost
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Jan 1, 2025
1 parent 15f0633 commit 599c556
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/slic3r/GUI/RemovableDriveManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <pwd.h>
#include <boost/filesystem.hpp>
#include <boost/system/error_code.hpp>
#include <boost/filesystem/convenience.hpp>
#include <boost/process.hpp>
#endif

Expand Down Expand Up @@ -202,7 +201,7 @@ namespace search_for_drives_internal
stat(path.c_str(), &buf);
uid_t uid = buf.st_uid;
if (getuid() == uid)
out.emplace_back(DriveData{ boost::filesystem::basename(boost::filesystem::path(path)), path });
out.emplace_back(DriveData{ boost::filesystem::path(path).stem().string(), path });
}
}
}
Expand Down

0 comments on commit 599c556

Please sign in to comment.