From b108d689126a9cda26ad5f8d63173fee142375c0 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Wed, 27 Apr 2011 21:33:57 -0400 Subject: [PATCH] Don't clear the trace when the file selection has been cancelled. --- gui/mainwindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 4416975..877c93d 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -74,9 +74,9 @@ void MainWindow::openTrace() QDir::homePath(), tr("Trace Files (*.trace)")); - qDebug()<< "File name : " <setValue(0); newTraceFile(fileName); } @@ -177,6 +175,9 @@ void MainWindow::replayStop() void MainWindow::newTraceFile(const QString &fileName) { + qDebug()<< "Loading : " <setValue(0); m_trace->setFileName(fileName); if (fileName.isEmpty()) { -- 2.43.0