fixed early initialization of QIcon

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4364 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2011-06-29 22:57:35 +00:00
parent aab46a5295
commit fd98b94dbd

View File

@ -20,7 +20,7 @@ LinksCloudPlugin::LinksCloudPlugin()
{ {
mRanking = NULL ; mRanking = NULL ;
mainpage = NULL ; mainpage = NULL ;
mIcon = new QIcon(IMAGE_LINKS) ; mIcon = NULL ;
} }
MainPage *LinksCloudPlugin::qt_page() const MainPage *LinksCloudPlugin::qt_page() const
@ -44,6 +44,9 @@ RsCacheService *LinksCloudPlugin::rs_cache_service() const
QIcon *LinksCloudPlugin::qt_icon() const QIcon *LinksCloudPlugin::qt_icon() const
{ {
if(mIcon == NULL)
mIcon = new QIcon(IMAGE_LINKS) ;
return mIcon ; return mIcon ;
} }