Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-windows
Commits
94b4aab4
Commit
94b4aab4
authored
May 08, 2015
by
Edric Milaret
Committed by
Guillaume Roguez
May 15, 2015
Browse files
windows: fix device selection on start
Refs #72790 Change-Id: I894a7f164e9abd8c23f20b6c5a47ecd035a10a5e
parent
e6538795
Changes
2
Hide whitespace changes
Inline
Side-by-side
configurationwidget.cpp
View file @
94b4aab4
...
...
@@ -42,10 +42,10 @@ ConfigurationWidget::ConfigurationWidget(QWidget *parent) :
ui
->
accountView
->
setModel
(
accountModel_
);
//FIXME : Seems to set the active device instead of taking the default one
isLoading_
=
true
;
ui
->
deviceBox
->
setModel
(
deviceModel_
);
ui
->
deviceBox
->
setCurrentIndex
(
deviceModel_
->
activeIndex
());
connect
(
deviceModel_
,
SIGNAL
(
currentIndexChanged
(
int
)),
this
,
SLOT
(
deviceIndexChanged
(
int
)));
connect
(
ui
->
accountView
->
selectionModel
(),
SIGNAL
(
selectionChanged
(
QItemSelection
,
QItemSelection
)),
...
...
@@ -68,6 +68,11 @@ ConfigurationWidget::~ConfigurationWidget()
delete
ui
;
}
void
ConfigurationWidget
::
deviceIndexChanged
(
int
index
)
{
ui
->
deviceBox
->
setCurrentIndex
(
index
);
}
void
ConfigurationWidget
::
on_deviceBox_currentIndexChanged
(
int
index
)
{
...
...
configurationwidget.h
View file @
94b4aab4
...
...
@@ -50,11 +50,11 @@ private slots:
void
on_testVideoButton_toggled
(
bool
checked
);
void
on_deleteAccountButton_clicked
();
void
on_addAccountButton_clicked
();
void
on_startupBox_toggled
(
bool
checked
);
private
slots
:
void
accountSelected
(
QItemSelection
itemSel
);
void
on_startupBox_toggled
(
bool
checked
);
void
deviceIndexChanged
(
int
index
);
private:
Ui
::
ConfigurationWidget
*
ui
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment