ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/soundWizard/soundpage2.cpp
(Generate patch)

Comparing Vago/trunk/Vago/soundWizard/soundpage2.cpp (file contents):
Revision 790 by s10k, Sat Apr 6 20:54:26 2013 UTC vs.
Revision 797 by s10k, Sun Apr 7 01:02:07 2013 UTC

# Line 15 | Line 15 | SoundPage2::SoundPage2(QWidget *parent)
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)));
# Line 71 | Line 71 | void SoundPage2::addResourcesSounds(Drop
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              }

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)