author | llornkcor <llornkcor> | 2002-11-05 13:32:56 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-05 13:32:56 (UTC) |
commit | 320c8020a112dff1bc1d43bee9b103a423e0ac35 (patch) (unidiff) | |
tree | 1de3fdcdfe26c9555d4356a18702f274a1217422 | |
parent | 0750e839e1d10069dbde7e669a345800f0ec088f (diff) | |
download | opie-320c8020a112dff1bc1d43bee9b103a423e0ac35.zip opie-320c8020a112dff1bc1d43bee9b103a423e0ac35.tar.gz opie-320c8020a112dff1bc1d43bee9b103a423e0ac35.tar.bz2 |
dont trust Qt to initialize QStrings correctly always
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.cpp | 3 | ||||
-rw-r--r-- | noncore/todayplugins/stockticker/stocktickerlib/stocktickerpluginwidget.h | 1 |
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 | |||
@@ -236,14 +236,13 @@ void StockTickerPluginWidget::init() { | |||
236 | wasError = true; | 236 | wasError = true; |
237 | } | 237 | } |
238 | 238 | ||
239 | void StockTickerPluginWidget::doStocks() { | 239 | void 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; |
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 | |||
@@ -47,12 +47,13 @@ public: | |||
47 | protected slots: | 47 | protected slots: |
48 | void doStocks(); | 48 | void doStocks(); |
49 | void isConnected(); | 49 | void isConnected(); |
50 | void socketError(int); | 50 | void socketError(int); |
51 | void checkConnection(); | 51 | void checkConnection(); |
52 | private: | 52 | private: |
53 | QString symbollist; | ||
53 | bool wasError; | 54 | bool wasError; |
54 | QSocket *Sock; | 55 | QSocket *Sock; |
55 | void timerEvent( QTimerEvent * ); | 56 | void timerEvent( QTimerEvent * ); |
56 | void init(); | 57 | void init(); |
57 | // void DefProxy(void); | 58 | // void DefProxy(void); |
58 | int timerDelay; | 59 | int timerDelay; |