Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jami-client-windows
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
savoirfairelinux
jami-client-windows
Commits
a3b984f0
Commit
a3b984f0
authored
6 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
fix crash on app start
Change-Id: I1e2c14fe4b7ae0f133fe6a23a12ae301ab6b5408
parent
0b7bd311
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
videooverlay.cpp
+22
-2
22 additions, 2 deletions
videooverlay.cpp
with
22 additions
and
2 deletions
videooverlay.cpp
+
22
−
2
View file @
a3b984f0
...
@@ -46,8 +46,28 @@ VideoOverlay::VideoOverlay(QWidget* parent) :
...
@@ -46,8 +46,28 @@ VideoOverlay::VideoOverlay(QWidget* parent) :
ui
->
onHoldLabel
->
setVisible
(
false
);
ui
->
onHoldLabel
->
setVisible
(
false
);
auto
accountList
=
LRCInstance
::
accountModel
().
getAccountList
();
if
(
!
accountList
.
size
())
{
QMetaObject
::
Connection
*
const
connection
=
new
QMetaObject
::
Connection
;
connect
(
&
LRCInstance
::
accountModel
(),
&
lrc
::
api
::
NewAccountModel
::
accountAdded
,
[
this
,
connection
](
const
std
::
string
&
accountId
)
{
Q_UNUSED
(
accountId
);
connect
(
LRCInstance
::
getCurrentCallModel
(),
&
lrc
::
api
::
NewCallModel
::
callStarted
,
connect
(
LRCInstance
::
getCurrentCallModel
(),
&
lrc
::
api
::
NewCallModel
::
callStarted
,
[
this
](
const
std
::
string
&
tempCallId
)
{
callId
=
tempCallId
;
});
[
this
](
const
std
::
string
&
tempCallId
)
{
callId
=
tempCallId
;
});
QObject
::
disconnect
(
*
connection
);
if
(
connection
)
{
delete
connection
;
}
});
}
else
{
connect
(
LRCInstance
::
getCurrentCallModel
(),
&
lrc
::
api
::
NewCallModel
::
callStarted
,
[
this
](
const
std
::
string
&
tempCallId
)
{
callId
=
tempCallId
;
});
}
connect
(
oneSecondTimer_
,
&
QTimer
::
timeout
,
this
,
&
VideoOverlay
::
setTime
);
connect
(
oneSecondTimer_
,
&
QTimer
::
timeout
,
this
,
&
VideoOverlay
::
setTime
);
oneSecondTimer_
->
start
(
1000
);
oneSecondTimer_
->
start
(
1000
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment