store packetlog with correct file ending

This commit is contained in:
Jan Käberich 2024-02-11 11:46:57 +01:00
parent 5136418e26
commit 0afcbaac5d

View File

@ -33,8 +33,8 @@ DevicePacketLogView::DevicePacketLogView(QWidget *parent) :
// aborted selection
return;
}
if(!filename.endsWith(".usblog")) {
filename.append(".usblog");
if(!filename.endsWith(".vnalog")) {
filename.append(".vnalog");
}
ofstream file;
file.open(filename.toStdString());