Replace remaining qDebug()s by report_info()

The only case left is in android.cpp, though that is only compiled
when compiling the full desktop app on Android. I.e. never. So
don't bother for now.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-26 20:23:50 +01:00 committed by bstoeger
parent 8867edffe8
commit b320942343
8 changed files with 18 additions and 18 deletions

View file

@ -85,7 +85,7 @@ namespace {
extern "C" int updateProgress(const char *text)
{
if (verbose)
qDebug() << "git storage:" << text;
report_info("git storage: %s", text);
if (progressDialog) {
// apparently we don't always get enough space to show the full label
// so let's manually make enough space (but don't shrink the existing size)
@ -1567,7 +1567,7 @@ void MainWindow::hideProgressBar()
void MainWindow::divesChanged(const QVector<dive *> &dives, DiveField)
{
for (struct dive *d: dives) {
qDebug() << "dive #" << d->number << "changed, cache is" << (dive_cache_is_valid(d) ? "valid" : "invalidated");
report_info("dive #%d changed, cache is %s", d->number, dive_cache_is_valid(d) ? "valid" : "invalidated");
// a brute force way to deal with that would of course be to call
// invalidate_dive_cache(d);
}