On treeWidget->clear() non of the the existing functions got called so the total doubled with every refresh
* Fixed a lot of warnings and removed waste code * Fixed more warnings and removed more waste code * restore XrefsDialog::updateLabels This function is used in memorywidget.cpp
First commit with the app code