aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-03 23:53:29 -0400
committerLioncash <mathew1800@gmail.com>2019-04-03 23:53:31 -0400
commitba4e1adda1c28166dbcdbd7b30b465c708aeb8df (patch)
tree9c3e64856aff7c1d97aa8a6da85fac6a9fcbcb3e /src/yuzu/main.cpp
parent7c31661869156d00241e8aebddc9718b918f57d7 (diff)
yuzu/main: Use static variant of QFile's exists()
There's no need to construct a QFile instance just to check for its existence.
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 9efe626d06..f45a74c6d8 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1096,7 +1096,7 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
tranferable_shader_cache_folder_path + DIR_SEP +
QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin";
- if (!QFile(transferable_shader_cache_file_path).exists()) {
+ if (!QFile::exists(transferable_shader_cache_file_path)) {
QMessageBox::warning(this,
tr("Error Opening %1 File").arg(QString::fromStdString(open_target)),
tr("File does not exist!"));