logical vs bitwise operation in restoretree.cpp
In bacula/src/qt-console/restore/restoretree.cpp:227, there seems to be a logical operation that should be a bitwise operation instead. With a logical operation, the progress bar would not be updated periodically.
QStringList fieldlist;
foreach(const QString &resultline, results) {
/* Update progress bar periodically */
- if ((++m_debugCnt && 0x3FF) == 0) {
+ if ((++m_debugCnt & 0x3FF) == 0) {
prBar2->setValue(m_debugCnt);
}
fieldlist = resultline.split("\t");
Edited by Hlib Korzhynskyy