X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fdevices%2Fsessionfile.cpp;h=7bcabee036cef366eb59d6cd3d5e4731ae1e9bfe;hp=687c52bdcd5a225a29d1cdfaeffac104b7c4c9a3;hb=b8f99b84b701bb086e1d6edb8c32093f3047e31e;hpb=b485408f20c39ae8d05372a5faffe15653c74705 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() {