mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Desktop: Fix bug when synching to the cloud
Fix a bug introduced in 8cd451fc33
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue