| Summary: | Catalogmanager uses 100% CPU and eats up memory | ||
|---|---|---|---|
| Product: | [Unmaintained] kbabel | Reporter: | Soenke Dibbern <s_dibbern> |
| Component: | CatalogManager | Assignee: | Stanislav Visnovsky <visnovsky> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.11.2 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Soenke Dibbern
2006-06-14 17:06:25 UTC
SVN commit 651172 by aseigo:
this may block the gui briefly (though testers didn't seem to notice in
any case), but most importantly it doesn't crash anymore.
BUGS:119222,129152
M +2 -23 catalogmanagerview.cpp
--- branches/KDE/3.5/kdesdk/kbabel/catalogmanager/catalogmanagerview.cpp #651171:651172
@@ -323,12 +323,10 @@
if(flag)
{
_updateTimer->stop();
- if( _dirWatch ) _dirWatch->stopScan();
}
else
{
_updateTimer->start(10000);
- if( _dirWatch ) _dirWatch->startScan();
}
}
@@ -1378,7 +1376,6 @@
}
} else kdDebug(KBABEL_CATMAN) << "Skipping " << item->poFile() << endl;
emit signalSearchedFile(1);
- kapp->processEvents(10);
if( _stop || _stopSearch ) {
_stopSearch = false;
rest.clear();
@@ -1842,11 +1839,7 @@
while ( it.current() && !_stop)
{
it.current()->checkUpdate(true);
-
- kapp->processEvents(10);
-
- i++;
-
+ ++i;
++it;
}
@@ -1856,11 +1849,7 @@
while ( dit.current() && !_stop)
{
dit.current()->checkUpdate();
-
- kapp->processEvents(10);
-
- i++;
-
+ ++i;
++dit;
}
@@ -1956,8 +1945,6 @@
for ( it = entryList.constBegin(); it != entryList.constEnd() && !_stop ; ++it )
{
- kapp->processEvents(100);
-
if( _stop ) return false;
if((*it)=="." || (*it)=="..")
@@ -2059,8 +2046,6 @@
for ( it = entryList.constBegin(); it != entryList.constEnd(); ++it )
{
- kapp->processEvents(100);
-
if( _stop ) return;
if((*it)=="." || (*it)=="..")
@@ -2143,8 +2128,6 @@
for ( it = entryList.constBegin(); it != entryList.constEnd(); ++it )
{
- kapp->processEvents(100);
-
if( _stop ) return;
if((*it)=="." || (*it)=="..")
@@ -2237,7 +2220,6 @@
void CatalogManagerView::directoryChanged(const QString& dir)
{
pause(true);
- _dirWatch->stopScan();
QString relDir, relDirPo, relDirPot;
if(dir.startsWith(_settings.poBaseDir))
@@ -2326,7 +2308,6 @@
updateDir(relDir);
}
- _dirWatch->startScan();
pause(false);
}
@@ -2334,7 +2315,6 @@
void CatalogManagerView::directoryDeleted(const QString& dir)
{
pause(true);
- _dirWatch->stopScan();
QString relDir, relDirPo, relDirPot;
if(dir.startsWith(_settings.poBaseDir))
@@ -2432,7 +2412,6 @@
}
}
- _dirWatch->startScan();
pause(false);
}
|