浏览代码

UI: Properly register VoidFunc in Meta Object System

gxalpha 3 年之前
父节点
当前提交
8cf46ca68c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UI/obs-app.cpp

+ 1 - 1
UI/obs-app.cpp

@@ -1514,7 +1514,7 @@ bool OBSApp::OBSInit()
 	setAttribute(Qt::AA_UseHighDpiPixmaps);
 #endif
 
-	qRegisterMetaType<VoidFunc>();
+	qRegisterMetaType<VoidFunc>("VoidFunc");
 
 #if !defined(_WIN32) && !defined(__APPLE__)
 	if (QApplication::platformName() == "xcb") {