Skip to content

Commit

Permalink
url-decode the load file path
Browse files Browse the repository at this point in the history
  • Loading branch information
toloudis committed May 21, 2024
1 parent cdfe858 commit 8ad44a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agave_app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ main(int argc, char* argv[])
bool listDevices = parser.isSet(listDevicesOption);
int selectedGpu = parser.value(selectGpuOption).toInt();
QString fileToLoad = parser.value(loadOption);
// the file path may be percent encoded, if it came through a url protocol handler, so decode it
fileToLoad = QUrl::fromPercentEncoding(fileToLoad.toUtf8());

QString appPath = QCoreApplication::applicationDirPath();
std::string appPathStr = appPath.toStdString();
Expand Down

0 comments on commit 8ad44a6

Please sign in to comment.