Sfoglia il codice sorgente

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

Added a default extension ".xml" on recording with ctkQtTesting.
Julien Finet 12 anni fa
parent
commit
37baabfdf7
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  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);
       }
     }