[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [Amarok] 23dc7f0: Fix possible crash of Last.fm service
From: Sergey Ivanov <123kash () gmail ! com>
Date: 2010-11-07 20:31:33
Message-ID: 20101107203133.8B4B9A60A6 () git ! kde ! org
[Download RAW message or body]
commit 23dc7f070c778fe7119d3c8aafefe62807cedd56
branch master
Author: Sergey Ivanov <123kash@gmail.com>
Date: Sun Nov 7 23:31:46 2010 +0300
Fix possible crash of Last.fm service
diff --git a/src/services/lastfm/LastFmService.cpp b/src/services/lastfm/LastFmService.cpp
index 1df7420..bbd96a9 100644
--- a/src/services/lastfm/LastFmService.cpp
+++ b/src/services/lastfm/LastFmService.cpp
@@ -238,7 +238,8 @@ LastFmService::init()
//Ws::ApiKey = "c8c7b163b11f92ef2d33ba6cd3c2c3c3";
m_userNameArray = qstrdup( m_userName.toLatin1().data() );
lastfm::ws::Username = m_userNameArray;
- lastfm::setNetworkAccessManager( The::networkAccessManager() );
+ if( !lastfm::nam() )
+ lastfm::setNetworkAccessManager( The::networkAccessManager() );
debug() << "username:" << QString( QUrl::toPercentEncoding( lastfm::ws::Username ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic