[rhythmbox] mtp: fix stupid mistake in previous commit



commit 34437632981c2784aa3233cf1cd2bb17f73c48e7
Author: Jonathan Matthew <jonathan d14n org>
Date:   Tue Dec 29 18:34:11 2009 +1000

    mtp: fix stupid mistake in previous commit
    
    well, I had to test it somehow..

 plugins/mtpdevice/rb-mtp-source.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/mtpdevice/rb-mtp-source.c b/plugins/mtpdevice/rb-mtp-source.c
index 3a805e1..8510783 100644
--- a/plugins/mtpdevice/rb-mtp-source.c
+++ b/plugins/mtpdevice/rb-mtp-source.c
@@ -725,7 +725,7 @@ mtp_device_open_cb (LIBMTP_mtpdevice_t *device, RBMtpSource *source)
 	RBMtpSourcePrivate *priv = MTP_SOURCE_GET_PRIVATE (source);
 	DeviceOpenedData *data;
 
-	if (device != NULL) {
+	if (device == NULL) {
 		/* can't delete the source on this thread, so move it to the main thread */
 		g_idle_add ((GSourceFunc) device_open_failed_idle, g_object_ref (source));
 		return;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]