Browse Source

Merge pull request #273 from cmouton/268-fix-ctkQtTesting-crash

Added a default extension ".xml" on recording with ctkQtTesting.
Julien Finet 12 years ago
parent
commit
37baabfdf7
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Applications/ctkQtTesting/ctkQtTestingMainWindow.cpp

+ 5 - 0
Applications/ctkQtTesting/ctkQtTestingMainWindow.cpp

@@ -95,6 +95,11 @@ void ctkQtTestingMainWindow::record(bool start)
     if (!filename.isEmpty())
       {
       qDebug() << "Start recording";
+      QFileInfo fileInfo(filename);
+      if (fileInfo.suffix() != "xml")
+        {
+        filename += ".xml";
+        }
       this->TestUtility->recordTests(filename);
       }
     }