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 <github@ike.ch>
This commit is contained in:
parent
a8d2b2ff70
commit
e60baff940
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user