summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-05 13:32:56 (UTC)
committer llornkcor <llornkcor>2002-11-05 13:32:56 (UTC)
commit320c8020a112dff1bc1d43bee9b103a423e0ac35 (patch) (side-by-side diff)
tree1de3fdcdfe26c9555d4356a18702f274a1217422
parent0750e839e1d10069dbde7e669a345800f0ec088f (diff)
downloadopie-320c8020a112dff1bc1d43bee9b103a423e0ac35.zip
opie-320c8020a112dff1bc1d43bee9b103a423e0ac35.tar.gz
opie-320c8020a112dff1bc1d43bee9b103a423e0ac35.tar.bz2
dont trust Qt to initialize QStrings correctly always
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp3
-rw-r--r--noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h1
2 files changed, 2 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
@@ -239,8 +239,7 @@ void StockTickerPluginWidget::init() {
void StockTickerPluginWidget::doStocks() {
Config cfg( "stockticker");
cfg.setGroup( "Symbols" );
- QString symbollist;
- symbollist = cfg.readEntry("Symbols", "");
+ symbollist="";
symbollist = cfg.readEntry("Symbols", "");
symbollist.replace(QRegExp(" "),"+");//seperated by +
diff --git a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h
index 970a561..8776bff 100644
--- a/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h
+++ b/noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h
@@ -50,6 +50,7 @@ protected slots:
void socketError(int);
void checkConnection();
private:
+ QString symbollist;
bool wasError;
QSocket *Sock;
void timerEvent( QTimerEvent * );