Mercurial > hg > svcore
diff data/fileio/FileSource.cpp @ 457:ef14acd6d102
* Add beginnings of capability to search plugins that are not yet
installed -- lots more work to do here, though
author | Chris Cannam |
---|---|
date | Tue, 14 Oct 2008 16:36:35 +0000 |
parents | beb2948baa77 |
children | 93fb1ebff76b |
line wrap: on
line diff
--- a/data/fileio/FileSource.cpp Mon Oct 13 13:53:05 2008 +0000 +++ b/data/fileio/FileSource.cpp Tue Oct 14 16:36:35 2008 +0000 @@ -743,7 +743,9 @@ QString filepart = m_url.path().section('/', -1, -1, QString::SectionSkipEmpty); - QString extension = filepart.section('.', -1); + QString extension = ""; + if (filepart.contains('.')) extension = filepart.section('.', -1); + QString base = filepart; if (extension != "") { base = base.left(base.length() - extension.length() - 1);