From 3488039e8c5adf4ffba25b5c0804b7e16ea1642c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 18 Aug 2015 21:36:03 -0700 Subject: [PATCH] UI: Fix GCC 4.8 compilation issue Apparently using QPointer container for the QObject being given to the connect function makes it so it can't find the actual function to use. I'm guessing this is incomplete functionality or a bug that existed in GCC 4.8. Doesn't happen in 4.9+. --- obs/window-basic-properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obs/window-basic-properties.cpp b/obs/window-basic-properties.cpp index 867fffbbd..1a1d1d17a 100644 --- a/obs/window-basic-properties.cpp +++ b/obs/window-basic-properties.cpp @@ -101,7 +101,7 @@ OBSBasicProperties::OBSBasicProperties(QWidget *parent, OBSSource source_) OBSBasicProperties::DrawPreview, this); }; - connect(preview, &OBSQTDisplay::DisplayCreated, addDrawCallback); + connect(preview.data(), &OBSQTDisplay::DisplayCreated, addDrawCallback); } OBSBasicProperties::~OBSBasicProperties()