Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in / Register
Toggle navigation
J
jami-client-windows
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Security & Compliance
Security & Compliance
Dependency List
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
savoirfairelinux
jami-client-windows
Commits
ec0a166d
Commit
ec0a166d
authored
Feb 21, 2020
by
Ming Rui Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
settingswidget: prevent crash when video device events happen with no account
Change-Id: I657d8b3793399b4a1f1819303c93684577743ada
parent
9d0011fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
src/settingswidget.cpp
src/settingswidget.cpp
+10
-8
No files found.
src/settingswidget.cpp
View file @
ec0a166d
...
...
@@ -1277,14 +1277,16 @@ SettingsWidget::populateVideoSettings()
}
ui
->
deviceBox
->
setCurrentIndex
(
deviceIndex
);
setFormatListForDevice
(
LRCInstance
::
avModel
().
getCurrentVideoCaptureDevice
());
bool
isSIP
=
LRCInstance
::
getCurrentAccountInfo
().
profileInfo
.
type
==
lrc
::
api
::
profile
::
Type
::
SIP
;
auto
photoBooth
=
isSIP
?
ui
->
currentSIPAccountAvatar
:
ui
->
currentAccountAvatar
;
if
(
(
photoBooth
->
isVisible
()
&&
LRCInstance
::
renderer
()
->
isPreviewing
())
||
selectedMenu_
==
SettingsMenu
::
Media
)
{
startPreviewing
(
false
);
}
try
{
bool
isSIP
=
LRCInstance
::
getCurrentAccountInfo
().
profileInfo
.
type
==
lrc
::
api
::
profile
::
Type
::
SIP
;
auto
photoBooth
=
isSIP
?
ui
->
currentSIPAccountAvatar
:
ui
->
currentAccountAvatar
;
if
((
photoBooth
->
isVisible
()
&&
LRCInstance
::
renderer
()
->
isPreviewing
())
||
selectedMenu_
==
SettingsMenu
::
Media
)
{
startPreviewing
(
false
);
}
}
catch
(...)
{}
}
connect
(
ui
->
deviceBox
,
QOverload
<
int
>::
of
(
&
QComboBox
::
currentIndexChanged
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment