]> sigrok.org Git - pulseview.git/blobdiff - pv/devices/file.cpp
Session: Implement .sr file save/restore
[pulseview.git] / pv / devices / file.cpp
index 5e1cb859d45073a1c63eb33d3b97be4ef22e09e3..f8ec998d8b7310749ac5e201979750af71f3581f 100644 (file)
@@ -32,12 +32,12 @@ File::File(const std::string &file_name) :
 
 std::string File::full_name() const
 {
-       return boost::filesystem::path(file_name_).filename().string();
+       return file_name_;
 }
 
 std::string File::display_name(const DeviceManager&) const
 {
-       return File::full_name();
+       return boost::filesystem::path(file_name_).filename().string();
 }
 
 } // namespace devices