--- a/qtinternetradio/ui/src/irstationshare.cpp Thu May 27 12:46:34 2010 +0300
+++ b/qtinternetradio/ui/src/irstationshare.cpp Fri Jun 11 13:30:40 2010 +0300
@@ -42,7 +42,8 @@
// ---------------------------------------------------------------------------
//
IRStationShare::IRStationShare()
- : iPlsFilePath(KPlsFilePath)
+ : iPlsFilePath(KPlsFilePath),
+ iShareDialog(NULL)
{
}
// ---------------------------------------------------------------------------
@@ -51,6 +52,7 @@
//
IRStationShare::~IRStationShare()
{
+ delete iShareDialog;
}
// ---------------------------------------------------------------------------
@@ -65,10 +67,14 @@
return false;
}
- ShareUi shareDialog;
+
QStringList fileList;
fileList.append(iPlsFilePath);
- return shareDialog.send(fileList,true);
+ if (NULL == iShareDialog)
+ {
+ iShareDialog = new ShareUi();
+ }
+ return iShareDialog->send(fileList,true);
}
bool IRStationShare::shareStations(const IRQPreset &aPreset)
@@ -78,10 +84,13 @@
return false;
}
- ShareUi shareDialog;
QStringList fileList;
fileList.append(iPlsFilePath);
- return shareDialog.send(fileList,true);
+ if (NULL == iShareDialog)
+ {
+ iShareDialog = new ShareUi();
+ }
+ return iShareDialog->send(fileList,true);
}
// ---------------------------------------------------------------------------