Преглед изворни кода

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+.
jp9000 пре 10 година
родитељ
комит
3488039e8c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      obs/window-basic-properties.cpp

+ 1 - 1
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()