| 15 |
|
ui->label->setText("<html>Add here the files you want to convert. " |
| 16 |
|
"All the files will have the same properties applied.<br/>" |
| 17 |
|
"Don't forget to first convert the files to an oni compatible codec. " |
| 18 |
< |
"More information <a href=' '>here.</a></html>"); // Don't use rich text in qtdesigner because it generates platform dependent code |
| 18 |
> |
"More information <a href='file:///"+this->codecLocalHelpFile+"'>here.</a></html>"); // Don't use rich text in qtdesigner because it generates platform dependent code |
| 19 |
|
|
| 20 |
|
// Drop signal for Packages table |
| 21 |
|
connect(ui->twSoundFiles, SIGNAL(dropped(DropTableWidget*,QStringList)), this, SLOT(addResourcesSounds(DropTableWidget*,QStringList))); |
| 71 |
|
|
| 72 |
|
//Pre-processing (check if received only folders) |
| 73 |
|
foreach(QString myFile, resources){ |
| 74 |
< |
QString currFileExt=QFileInfo(myFile).completeSuffix(); |
| 74 |
> |
QString currFileExt="."+QFileInfo(myFile).completeSuffix(); |
| 75 |
|
if(QDir(myFile).exists()){ |
| 76 |
|
Util::showErrorPopUp("Only files are allowed for this operation."); |
| 77 |
|
return; |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
foreach(QString vext, this->allowedFiles){ |
| 81 |
< |
vext.remove("*."); |
| 82 |
< |
if(vext==currFileExt){ |
| 81 |
> |
vext.remove("*"); |
| 82 |
> |
if(currFileExt.endsWith(vext)){ |
| 83 |
|
fileExtValid=true; |
| 84 |
|
break; |
| 85 |
|
} |