浏览代码

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

Added a default extension ".xml" on recording with ctkQtTesting.
Julien Finet 12 年之前
父节点
当前提交
37baabfdf7
共有 1 个文件被更改,包括 5 次插入0 次删除
  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);
       }
     }