Commit 86cffac4307a0c608643395f54b9412f5dc922e1

Authored by Josh Klontz
1 parent 7abaef47

minor bug fix

openbr/plugins/core/loadstore.cpp
@@ -201,11 +201,12 @@ private: @@ -201,11 +201,12 @@ private:
201 201
202 QString getFileName() const 202 QString getFileName() const
203 { 203 {
204 - foreach (const QString &file, QStringList() << fileName  
205 - << Globals->sdkPath + "/share/openbr/models/distances/" + fileName  
206 - << Globals->sdkPath + "/../share/openbr/models/distances/" + fileName)  
207 - if (QFileInfo(file).exists())  
208 - return file; 204 + if (!fileName.isEmpty())
  205 + foreach (const QString &file, QStringList() << fileName
  206 + << Globals->sdkPath + "/share/openbr/models/distances/" + fileName
  207 + << Globals->sdkPath + "/../share/openbr/models/distances/" + fileName)
  208 + if (QFileInfo(file).exists())
  209 + return file;
209 return QString(); 210 return QString();
210 } 211 }
211 212