Projects
Multimedia
obs-studio
0001-UI-Fix-GCC-4.8-compilation-issue.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-UI-Fix-GCC-4.8-compilation-issue.patch of Package obs-studio (Revision 22)
Currently displaying revision
22
,
Show latest
From 8593c4bacd4b22b1503a0f1fedfc7cea17bf537c Mon Sep 17 00:00:00 2001 From: boombatower <jimmy@boombatower.com> Date: Fri, 29 Jan 2016 13:58:45 -0600 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-main-transitions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obs/window-basic-main-transitions.cpp b/obs/window-basic-main-transitions.cpp index bf49eb8..e230fab 100644 --- a/obs/window-basic-main-transitions.cpp +++ b/obs/window-basic-main-transitions.cpp @@ -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); -- 2.7.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.