Commit 618f67de authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed bug in load save dialog, where capital extensions were not handled correctly

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11715 383ad7c9-94d9-4d36-a494-682f7c89f535
parent c8606141
......@@ -214,7 +214,7 @@ void LoadWidget::loadFile(){
QString filters = supportedTypes_[t].loadFilters;
if (filters.contains(ext[i])){
if (filters.contains(ext[i],Qt::CaseInsensitive)){
pluginForExtension_[ ext[i] ] = t;
break;
}
......@@ -243,6 +243,7 @@ void LoadWidget::loadFile(){
if (fi.isDir() || !file.exists()) continue; //do nothing if its a not a valid file
QString ext = fi.suffix();
//emit load signal
if ( pluginForExtension_.find( fi.suffix() ) != pluginForExtension_.end() ){
......@@ -286,7 +287,7 @@ void LoadWidget::saveFile(){
QString filters = supportedTypes_[t].saveFilters;
if (filters.contains( fi.suffix() )){
if (filters.contains( fi.suffix(),Qt::CaseInsensitive )){
pluginForExtension_[ fi.suffix() ] = t;
break;
}
......
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