OSDN Git Service

kioslave: use kWarning() in resetDeviceStack()
authorIvailo Monev <xakepa10@gmail.com>
Tue, 13 Jul 2021 17:19:27 +0000 (20:19 +0300)
committerIvailo 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

index b74de6b..508c6e6 100644 (file)
@@ -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);
 }