mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-27 00:08:54 -04:00
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+.
This commit is contained in:
1 parent
514b59c78f
commit
8593c4bacd
1 file changed
+2
-2
@@ -407,7 +407,7 @@ void OBSBasic::CreateProgramDisplay()
|
||||
ResizeProgram(ovi.base_width, ovi.base_height);
|
||||
};
|
||||
|
||||
connect(program, &OBSQTDisplay::DisplayResized,
|
||||
connect(program.data(), &OBSQTDisplay::DisplayResized,
|
||||
displayResize);
|
||||
|
||||
auto addDisplay = [this] (OBSQTDisplay *window)
|
||||
@@ -420,7 +420,7 @@ void OBSBasic::CreateProgramDisplay()
|
||||
ResizeProgram(ovi.base_width, ovi.base_height);
|
||||
};
|
||||
|
||||
connect(program, &OBSQTDisplay::DisplayCreated, addDisplay);
|
||||
connect(program.data(), &OBSQTDisplay::DisplayCreated, addDisplay);
|
||||
|
||||
program->setSizePolicy(QSizePolicy::Expanding,
|
||||
QSizePolicy::Expanding);
|
||||
|
||||
Reference in new issue
Block a user