summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-03 23:53:29 -0400
committerGravatar Lioncash2019-04-03 23:53:31 -0400
commitba4e1adda1c28166dbcdbd7b30b465c708aeb8df (patch)
tree9c3e64856aff7c1d97aa8a6da85fac6a9fcbcb3e /src
parentMerge pull request #2330 from lioncash/pragma (diff)
downloadyuzu-ba4e1adda1c28166dbcdbd7b30b465c708aeb8df.tar.gz
yuzu-ba4e1adda1c28166dbcdbd7b30b465c708aeb8df.tar.xz
yuzu-ba4e1adda1c28166dbcdbd7b30b465c708aeb8df.zip
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')
-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 9efe626d0..f45a74c6d 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1096,7 +1096,7 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
1096 tranferable_shader_cache_folder_path + DIR_SEP + 1096 tranferable_shader_cache_folder_path + DIR_SEP +
1097 QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin"; 1097 QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin";
1098 1098
1099 if (!QFile(transferable_shader_cache_file_path).exists()) { 1099 if (!QFile::exists(transferable_shader_cache_file_path)) {
1100 QMessageBox::warning(this, 1100 QMessageBox::warning(this,
1101 tr("Error Opening %1 File").arg(QString::fromStdString(open_target)), 1101 tr("Error Opening %1 File").arg(QString::fromStdString(open_target)),
1102 tr("File does not exist!")); 1102 tr("File does not exist!"));