Skip to content

Commit

Permalink
Fix a filter bug (accept *.lowercase *.UPPERCASE)
Browse files Browse the repository at this point in the history
  • Loading branch information
arntanguy committed Jun 27, 2009
1 parent 5706e44 commit ebb306e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FotoWall.cpp
Expand Up @@ -434,8 +434,9 @@ void FotoWall::on_aAddPicture_triggered()
{
// build the extensions list
QString extensions;
foreach (const QByteArray & format, QImageReader::supportedImageFormats())
extensions += "*." + format + " ";
foreach (const QByteArray & format, QImageReader::supportedImageFormats()) {
extensions += "*." + format + " *." + format.toUpper() + " ";
}

// show the files dialog
QStringList fileNames = QFileDialog::getOpenFileNames(ui->centralWidget, tr("Select one or more pictures to add"), QString(), tr("Images (%1)").arg(extensions));
Expand Down

0 comments on commit ebb306e

Please sign in to comment.