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() ...@@ -197,10 +197,11 @@ void WMainWindow::openLoadDialog()
fd.setFileMode( QFileDialog::ExistingFiles ); fd.setFileMode( QFileDialog::ExistingFiles );
QStringList filters; QStringList filters;
filters << "Any files (*)" filters << "Known file types (*.edf *.asc *.nii *.nii.gz *.fib)"
<< "EEG files (*.cnt *.edf)" << "EEG files (*.asc *.edf)"
<< "NIfTI (*.nii *.nii.gz)" << "NIfTI (*.nii *.nii.gz)"
<< "VTK (*.vtk)"; << "Fibers (*.fib)"
<< "Any files (*)";
fd.setNameFilters( filters ); fd.setNameFilters( filters );
fd.setViewMode( QFileDialog::Detail ); fd.setViewMode( QFileDialog::Detail );
QStringList fileNames; QStringList fileNames;
......
...@@ -167,13 +167,6 @@ void WMData::moduleMain() ...@@ -167,13 +167,6 @@ void WMData::moduleMain()
WLoaderEEGASCII eegAsciiLoader( fileName, WKernel::getRunningKernel()->getDataHandler() ); WLoaderEEGASCII eegAsciiLoader( fileName, WKernel::getRunningKernel()->getDataHandler() );
m_dataSet = eegAsciiLoader.load(); 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" ) else if( suffix == ".fib" )
{ {
WLoaderFibers fibLoader( fileName, WKernel::getRunningKernel()->getDataHandler() ); 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