Update TraceView.cpp
This commit is contained in:
parent
3d71de812e
commit
b616d6642c
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue