From: Zack Rusin Date: Thu, 28 Apr 2011 01:33:57 +0000 (-0400) Subject: Don't clear the trace when the file selection has been cancelled. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b108d689126a9cda26ad5f8d63173fee142375c0;p=apitrace Don't clear the trace when the file selection has been cancelled. --- 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()) {