Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jami-client-windows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
savoirfairelinux
jami-client-windows
Commits
4d23e33e
Commit
4d23e33e
authored
Jan 02, 2019
by
Andreas Traczyk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wizard: connect accountAdded signal before creating account
Change-Id: I31bc2a79fe75f7819d36005bae5d2484f0bfc018
parent
f1dc5137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
newwizardwidget.cpp
newwizardwidget.cpp
+10
-10
No files found.
newwizardwidget.cpp
View file @
4d23e33e
...
...
@@ -410,16 +410,6 @@ NewWizardWidget::createRingAccount(const QString &displayName,
const
QString
&
pin
,
const
QString
&
archivePath
)
{
QtConcurrent
::
run
(
[
=
]
{
LRCInstance
::
accountModel
().
createNewAccount
(
lrc
::
api
::
profile
::
Type
::
RING
,
displayName
.
toStdString
(),
archivePath
.
toStdString
(),
password
.
toStdString
(),
pin
.
toStdString
()
);
});
QMetaObject
::
Connection
*
const
connection
=
new
QMetaObject
::
Connection
;
*
connection
=
connect
(
&
LRCInstance
::
accountModel
(),
&
lrc
::
api
::
NewAccountModel
::
accountAdded
,
[
this
,
connection
](
const
std
::
string
&
accountId
)
{
...
...
@@ -447,6 +437,16 @@ NewWizardWidget::createRingAccount(const QString &displayName,
delete
connection
;
}
});
QtConcurrent
::
run
(
[
=
]
{
LRCInstance
::
accountModel
().
createNewAccount
(
lrc
::
api
::
profile
::
Type
::
RING
,
displayName
.
toStdString
(),
archivePath
.
toStdString
(),
password
.
toStdString
(),
pin
.
toStdString
()
);
});
changePage
(
ui
->
spinnerPage
);
repaint
();
}
\ No newline at end of file
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