From e60baff94006c5e32b98ce34e4de6dce3cecf998 Mon Sep 17 00:00:00 2001 From: Michael Keller Date: Sat, 22 Apr 2023 00:14:22 +1200 Subject: [PATCH] Desktop: Fix bug when synching to the cloud Fix a bug introduced in 8cd451fc338da275f66b15181894e37621698109 causing an error to be thrown every time trying to do 'Save to cloud storage'. Signed-off-by: Michael Keller --- desktop-widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 1b79f5ac7..19f3e46f2 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -426,7 +426,7 @@ void MainWindow::on_actionCloudstorageopen_triggered() // Return whether saving to cloud is OK. If it isn't, show an error return false. static bool saveToCloudOK() { - if (divelog.dives->nr) { + if (!divelog.dives->nr) { report_error(qPrintable(gettextFromC::tr("Don't save an empty log to the cloud"))); return false; }