diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 9efe626d06f1fc17b7c24d0816df29f1cc82a039..f45a74c6d830990bfb7656fc15516ed7a08184e2 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!"));