Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
transfer-engine
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mer-core
transfer-engine
Commits
662184a5
Commit
662184a5
authored
Nov 21, 2017
by
Pekka Vuorela
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up strange if-else structure
parent
a8b343a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/transferengine.cpp
src/transferengine.cpp
+3
-5
No files found.
src/transferengine.cpp
View file @
662184a5
...
...
@@ -363,8 +363,7 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty
qWarning
()
<<
"TransferEnginePrivate::sendNotification: unknown state"
;
break
;
}
}
else
{
if
(
status
==
TransferEngineData
::
TransferInterrupted
)
{
}
else
if
(
status
==
TransferEngineData
::
TransferInterrupted
)
{
category
=
TRANSFER_ERROR_EVENT_CATEGORY
;
switch
(
type
)
{
...
...
@@ -391,15 +390,14 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty
summary
=
fileName
;
previewSummary
=
summary
;
previewBody
=
body
;
}
else
{
if
(
status
==
TransferEngineData
::
TransferCanceled
)
{
}
else
if
(
status
==
TransferEngineData
::
TransferCanceled
)
{
// Exit, no banners or events when user has canceled a transfer
// Remove any existing notification
if
(
existing
)
{
existing
->
close
();
}
}
}}
}
if
(
!
category
.
isEmpty
())
{
Notification
notification
;
...
...
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