comparison 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
comparison
equal deleted inserted replaced
456:64e64e304a12 457:ef14acd6d102
741 } 741 }
742 742
743 QString filepart = m_url.path().section('/', -1, -1, 743 QString filepart = m_url.path().section('/', -1, -1,
744 QString::SectionSkipEmpty); 744 QString::SectionSkipEmpty);
745 745
746 QString extension = filepart.section('.', -1); 746 QString extension = "";
747 if (filepart.contains('.')) extension = filepart.section('.', -1);
748
747 QString base = filepart; 749 QString base = filepart;
748 if (extension != "") { 750 if (extension != "") {
749 base = base.left(base.length() - extension.length() - 1); 751 base = base.left(base.length() - extension.length() - 1);
750 } 752 }
751 if (base == "") base = "remote"; 753 if (base == "") base = "remote";