Update TraceView.cpp

This commit is contained in:
DavidXanatos 2021-10-16 20:13:16 +02:00
parent 3d71de812e
commit b616d6642c
1 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,8 @@ void CTraceView::OnSetFilter()
void CTraceView::SaveToFile() void CTraceView::SaveToFile()
{ {
QString Path = QFileDialog::getSaveFileName(this, tr("Save trace log to file"), "", QString("Log files (*.log)")).replace("/", "\\"); QString Path = QFileDialog::getSaveFileName(this, tr("Save trace log to file"), "", QString("Log files (*.log)")).replace("/", "\\");
if (Path.isEmpty())
return;
QFile File(Path); QFile File(Path);
if (!File.open(QFile::WriteOnly)) { if (!File.open(QFile::WriteOnly)) {