Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
80412292
Commit
80412292
authored
Aug 09, 2011
by
shibakaneki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolved a crash when the user enters bad credentials for the network infos
parent
42a7fef6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
UBDocumentPublisher.cpp
src/adaptors/publishing/UBDocumentPublisher.cpp
+23
-19
No files found.
src/adaptors/publishing/UBDocumentPublisher.cpp
View file @
80412292
...
...
@@ -574,27 +574,31 @@ void UBDocumentPublisher::onFinished(QNetworkReply *reply)
// Now we isolate every cookie value
QStringList
qslCookieVals
=
qsCookieValue
.
split
(
"; "
);
bool
bTransferOk
=
false
;
for
(
int
j
=
0
;
j
<=
qslCookieVals
.
size
();
j
++
)
{
if
(
qslCookieVals
.
at
(
j
).
startsWith
(
"assetStatus"
))
{
QStringList
qslAsset
=
qslCookieVals
.
at
(
j
).
split
(
"="
);
if
(
qslAsset
.
at
(
1
)
==
"UPLOADED"
)
{
bTransferOk
=
true
;
break
;
}
}
}
if
(
bTransferOk
)
{
UBApplication
::
showMessage
(
tr
(
"Document uploaded correctly on the web."
));
}
else
bool
bTransferOk
=
false
;
for
(
int
j
=
0
;
j
<
qslCookieVals
.
size
();
j
++
)
{
qDebug
()
<<
j
;
if
(
qslCookieVals
.
at
(
j
).
startsWith
(
"assetStatus"
))
{
QStringList
qslAsset
=
qslCookieVals
.
at
(
j
).
split
(
"="
);
if
(
qslAsset
.
at
(
1
)
==
"UPLOADED"
)
{
UBApplication
::
showMessage
(
tr
(
"Failed to upload document on the web."
));
bTransferOk
=
true
;
break
;
}
}
}
if
(
bTransferOk
)
{
UBApplication
::
showMessage
(
tr
(
"Document uploaded correctly on the web."
));
}
else
{
UBApplication
::
showMessage
(
tr
(
"Failed to upload document on the web."
));
}
reply
->
deleteLater
();
}
...
...
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