--- Vago/trunk/Vago/soundWizard/soundpage2.cpp 2013/04/06 20:54:26 790 +++ Vago/trunk/Vago/soundWizard/soundpage2.cpp 2013/04/07 01:02:07 797 @@ -15,7 +15,7 @@ SoundPage2::SoundPage2(QWidget *parent) ui->label->setText("Add here the files you want to convert. " "All the files will have the same properties applied.
" "Don't forget to first convert the files to an oni compatible codec. " - "More information here."); // Don't use rich text in qtdesigner because it generates platform dependent code + "More information here."); // Don't use rich text in qtdesigner because it generates platform dependent code // Drop signal for Packages table connect(ui->twSoundFiles, SIGNAL(dropped(DropTableWidget*,QStringList)), this, SLOT(addResourcesSounds(DropTableWidget*,QStringList))); @@ -71,15 +71,15 @@ void SoundPage2::addResourcesSounds(Drop //Pre-processing (check if received only folders) foreach(QString myFile, resources){ - QString currFileExt=QFileInfo(myFile).completeSuffix(); + QString currFileExt="."+QFileInfo(myFile).completeSuffix(); if(QDir(myFile).exists()){ Util::showErrorPopUp("Only files are allowed for this operation."); return; } foreach(QString vext, this->allowedFiles){ - vext.remove("*."); - if(vext==currFileExt){ + vext.remove("*"); + if(currFileExt.endsWith(vext)){ fileExtValid=true; break; }