Przeglądaj źródła

Added a default extension ".xml" on recording with ctkQtTesting.
Fixes #268

Claire Mouton 12 lat temu
rodzic
commit
b7f5a340a6

+ 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);
       }
     }