OSDN Git Service
(root)
/
kde
/
kde-workspace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f1d374
)
kioslave: use kWarning() in resetDeviceStack()
author
Ivailo Monev
<xakepa10@gmail.com>
Tue, 13 Jul 2021 17:19:27 +0000
(20:19 +0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Tue, 13 Jul 2021 17:19:27 +0000
(20:19 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kioslave/mtp/kio_mtp_helpers.cpp
patch
|
blob
|
history
diff --git
a/kioslave/mtp/kio_mtp_helpers.cpp
b/kioslave/mtp/kio_mtp_helpers.cpp
index
b74de6b
..
508c6e6
100644
(file)
--- a/
kioslave/mtp/kio_mtp_helpers.cpp
+++ b/
kioslave/mtp/kio_mtp_helpers.cpp
@@
-352,6
+352,10
@@
void getEntry(UDSEntry &entry, const LIBMTP_file_t* file)
void resetDeviceStack(LIBMTP_mtpdevice_t* device)
{
- LIBMTP_Dump_Errorstack(device);
+ LIBMTP_error_t* error = LIBMTP_Get_Errorstack(device);
+ while (error) {
+ kWarning(KIO_MTP) << error->error_text;
+ error = error->next;
+ }
LIBMTP_Clear_Errorstack(device);
}