-rw-r--r-- | core/launcher/launcherview.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/launcher/launcherview.cpp b/core/launcher/launcherview.cpp index 9f86136..dbcb0d7 100644 --- a/core/launcher/launcherview.cpp +++ b/core/launcher/launcherview.cpp | |||
@@ -96,25 +96,27 @@ public: | |||
96 | 96 | ||
97 | void setBusy(bool on) | 97 | void setBusy(bool on) |
98 | { | 98 | { |
99 | QIconViewItem *c = on ? currentItem() : 0; | 99 | QIconViewItem *c = on ? currentItem() : 0; |
100 | if ( bsy != c ) { | 100 | if ( bsy != c ) { |
101 | if ( bsy ) | 101 | if ( bsy ) |
102 | bsy-> repaint ( ); | 102 | bsy-> repaint ( ); |
103 | bsy = c; | 103 | bsy = c; |
104 | 104 | ||
105 | if ( bsy ) { | 105 | if ( bsy ) { |
106 | busytimer = startTimer ( 150 ); | 106 | busytimer = startTimer ( 150 ); |
107 | busystate = 50; | 107 | busystate = 50; |
108 | startTimer ( 0 ); | 108 | // not sure what this startTimer is for, maybe i am just to tired. But |
109 | // currently that causes 100% cpuload on app launch | ||
110 | //startTimer ( 0 ); | ||
109 | } | 111 | } |
110 | else | 112 | else |
111 | killTimer ( busytimer ); | 113 | killTimer ( busytimer ); |
112 | } | 114 | } |
113 | } | 115 | } |
114 | 116 | ||
115 | virtual void timerEvent ( QTimerEvent *te ) | 117 | virtual void timerEvent ( QTimerEvent *te ) |
116 | { | 118 | { |
117 | if ( !te || ( te-> timerId ( ) == busytimer )) { | 119 | if ( !te || ( te-> timerId ( ) == busytimer )) { |
118 | if ( bsy ) { | 120 | if ( bsy ) { |
119 | QPixmap *src = bsy-> QIconViewItem::pixmap(); | 121 | QPixmap *src = bsy-> QIconViewItem::pixmap(); |
120 | QImage img = src->convertToImage(); | 122 | QImage img = src->convertToImage(); |