X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevice%2Ffile.cpp;h=e33be854af1922680b8dae89bfe1581caadaace6;hp=190b53846bc08071d60df99cd1e759b070b060be;hb=03e8c9914eeadadd6f54aa32f55f5c08bd27c426;hpb=3668e2fe35956801bc3f89de2dabcddf98e19179 diff --git a/pv/device/file.cpp b/pv/device/file.cpp index 190b5384..e33be854 100644 --- a/pv/device/file.cpp +++ b/pv/device/file.cpp @@ -22,6 +22,8 @@ #include "inputfile.h" #include "sessionfile.h" +#include + #include using std::string; @@ -36,7 +38,7 @@ File::File(const std::string path) : std::string File::format_device_title() const { - return _path; + return boost::filesystem::path(_path).filename().string(); } File* File::create(const string &name)