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; }