Skip to content

Commit

Permalink
GUI: Use correct string type for exception (QString -> C string)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdde authored and DrMcCoy committed Dec 27, 2017
1 parent b0aa86a commit 31ac814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/resourcetree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ Aurora::KEYDataFile *ResourceTree::getKEYDataFile(const QString &file) {

Common::UString path = Common::FilePath::normalize(USTR(_rootPath + "/" + file));
if (path.empty())
throw Common::Exception("No such file or directory \"%s\"", (_root->getPath() + "/" + file));
throw Common::Exception("No such file or directory \"%s\"", (_root->getPath() + "/" + file).toStdString().c_str());

Aurora::FileType type = TypeMan.getFileType(file);

Expand Down

0 comments on commit 31ac814

Please sign in to comment.