summaryrefslogtreecommitdiff
path: root/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
Unidiff
Diffstat (limited to 'noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
index 45c5c53..2f35f7f 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp
@@ -230,26 +230,25 @@ void StockTickerPluginWidget::init() {
230 230
231 QHBoxLayout* layout = new QHBoxLayout( this ); 231 QHBoxLayout* layout = new QHBoxLayout( this );
232 stocktickerTicker = new OTicker(this); 232 stocktickerTicker = new OTicker(this);
233 stocktickerTicker->setMinimumHeight(15); 233 stocktickerTicker->setMinimumHeight(15);
234 connect( stocktickerTicker, SIGNAL( mousePressed()), this, SLOT( checkConnection() )); 234 connect( stocktickerTicker, SIGNAL( mousePressed()), this, SLOT( checkConnection() ));
235 layout->addWidget( stocktickerTicker); 235 layout->addWidget( stocktickerTicker);
236 wasError = true; 236 wasError = true;
237} 237}
238 238
239void StockTickerPluginWidget::doStocks() { 239void StockTickerPluginWidget::doStocks() {
240 Config cfg( "stockticker"); 240 Config cfg( "stockticker");
241 cfg.setGroup( "Symbols" ); 241 cfg.setGroup( "Symbols" );
242 QString symbollist; 242 symbollist="";
243 symbollist = cfg.readEntry("Symbols", "");
244 symbollist = cfg.readEntry("Symbols", ""); 243 symbollist = cfg.readEntry("Symbols", "");
245 symbollist.replace(QRegExp(" "),"+");//seperated by + 244 symbollist.replace(QRegExp(" "),"+");//seperated by +
246 245
247// qDebug(symbollist); 246// qDebug(symbollist);
248 if (!symbollist.isEmpty()) { 247 if (!symbollist.isEmpty()) {
249 pthread_t thread1; 248 pthread_t thread1;
250 pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist); 249 pthread_create(&thread1,NULL, (void * (*)(void *))getStocks, &symbollist);
251 } 250 }
252// pthread_join(thread1,NULL); 251// pthread_join(thread1,NULL);
253// getStocks( symbollist.latin1() ); 252// getStocks( symbollist.latin1() );
254} 253}
255 254