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
4d23e33e
Commit
4d23e33e
authored
6 years ago
by
Andreas Traczyk
Browse files
Options
Downloads
Patches
Plain Diff
wizard: connect accountAdded signal before creating account
Change-Id: I31bc2a79fe75f7819d36005bae5d2484f0bfc018
parent
f1dc5137
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
newwizardwidget.cpp
+10
-10
10 additions, 10 deletions
newwizardwidget.cpp
with
10 additions
and
10 deletions
newwizardwidget.cpp
+
10
−
10
View file @
4d23e33e
...
@@ -410,16 +410,6 @@ NewWizardWidget::createRingAccount(const QString &displayName,
...
@@ -410,16 +410,6 @@ NewWizardWidget::createRingAccount(const QString &displayName,
const
QString
&
pin
,
const
QString
&
pin
,
const
QString
&
archivePath
)
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
;
QMetaObject
::
Connection
*
const
connection
=
new
QMetaObject
::
Connection
;
*
connection
=
connect
(
&
LRCInstance
::
accountModel
(),
&
lrc
::
api
::
NewAccountModel
::
accountAdded
,
*
connection
=
connect
(
&
LRCInstance
::
accountModel
(),
&
lrc
::
api
::
NewAccountModel
::
accountAdded
,
[
this
,
connection
](
const
std
::
string
&
accountId
)
{
[
this
,
connection
](
const
std
::
string
&
accountId
)
{
...
@@ -447,6 +437,16 @@ NewWizardWidget::createRingAccount(const QString &displayName,
...
@@ -447,6 +437,16 @@ NewWizardWidget::createRingAccount(const QString &displayName,
delete
connection
;
delete
connection
;
}
}
});
});
QtConcurrent
::
run
(
[
=
]
{
LRCInstance
::
accountModel
().
createNewAccount
(
lrc
::
api
::
profile
::
Type
::
RING
,
displayName
.
toStdString
(),
archivePath
.
toStdString
(),
password
.
toStdString
(),
pin
.
toStdString
()
);
});
changePage
(
ui
->
spinnerPage
);
changePage
(
ui
->
spinnerPage
);
repaint
();
repaint
();
}
}
\ No newline at end of file
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