瀏覽代碼

applets/profile_select: Resolve a warning in exec()

Resolves a warning where not all control paths return a value.
Morph 5 年之前
父節點
當前提交
9afbcd9e8a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/yuzu/applets/profile_select.cpp

+ 1 - 1
src/yuzu/applets/profile_select.cpp

@@ -120,7 +120,7 @@ int QtProfileSelectionDialog::exec() {
         user_index = 0;
         return QDialog::Accepted;
     }
-    QDialog::exec();
+    return QDialog::exec();
 }
 
 void QtProfileSelectionDialog::accept() {