X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Fsessionfile.cpp;fp=pv%2Fdevices%2Fsessionfile.cpp;h=7bcabee036cef366eb59d6cd3d5e4731ae1e9bfe;hp=687c52bdcd5a225a29d1cdfaeffac104b7c4c9a3;hb=474e817a724fdad4db635ba59202283fbcc22ef9;hpb=3084ed4b15663dd717ff656745db305f377ab215 diff --git a/pv/devices/sessionfile.cpp b/pv/devices/sessionfile.cpp index 687c52bd..7bcabee0 100644 --- a/pv/devices/sessionfile.cpp +++ b/pv/devices/sessionfile.cpp @@ -29,16 +29,8 @@ namespace devices { SessionFile::SessionFile(const std::shared_ptr &context, const std::string &file_name) : - context_(context), - file_name_(file_name) { -} - -std::string SessionFile::full_name() const { - return boost::filesystem::path(file_name_).filename().string(); -} - -std::string SessionFile::display_name(const DeviceManager&) const { - return SessionFile::full_name(); + File(file_name), + context_(context) { } void SessionFile::create() {