Commit 498ce988 authored by Jan Möbius's avatar Jan Möbius

Fixed problem loading files with multiple dots in their filename

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10696 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 8d718324
......@@ -208,7 +208,11 @@ int Core::loadObject ( QString _filename ) {
QString filters = supportedTypes_[i].plugin->getLoadFilters();
//check extension
if ( ! filters.contains( "*." + fi.completeSuffix() , Qt::CaseInsensitive) )
if ( ! filters.contains( "*." + fi.suffix() , Qt::CaseInsensitive) ) {
continue;
} else {
emit log(LOGWARN,"Found supported datatype but only the suffix is matched not the complete suffix!");
}
if ( OpenFlipper::Options::gui() ) {
coreWidget_->statusMessage( tr("Loading %1 ... ").arg(_filename));
......
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