Commit d14f4b0b authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX] changed file filters in gui and removed the assert for vtk in the

loader. This should fix the crash when selcting files of type not known to
OW.
parent d7e898b5
......@@ -197,10 +197,11 @@ void WMainWindow::openLoadDialog()
fd.setFileMode( QFileDialog::ExistingFiles );
QStringList filters;
filters << "Any files (*)"
<< "EEG files (*.cnt *.edf)"
filters << "Known file types (*.edf *.asc *.nii *.nii.gz *.fib)"
<< "EEG files (*.asc *.edf)"
<< "NIfTI (*.nii *.nii.gz)"
<< "VTK (*.vtk)";
<< "Fibers (*.fib)"
<< "Any files (*)";
fd.setNameFilters( filters );
fd.setViewMode( QFileDialog::Detail );
QStringList fileNames;
......
......@@ -167,13 +167,6 @@ void WMData::moduleMain()
WLoaderEEGASCII eegAsciiLoader( fileName, WKernel::getRunningKernel()->getDataHandler() );
m_dataSet = eegAsciiLoader.load();
}
else if( suffix == ".vtk" )
{
// This is a dummy implementation.
// You need to provide a real implementation here if you want to load vtk.
errorLog() << "VTK not implemented yet";
assert( 0 );
}
else if( suffix == ".fib" )
{
WLoaderFibers fibLoader( fileName, WKernel::getRunningKernel()->getDataHandler() );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment