diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-03-14 10:19:23 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-03-14 10:49:53 -0700 |
commit | b5d0cfd557aa94a423e19663339439301ab1a5ae (patch) | |
tree | fbc7743cdac57ea0f779bca3918aa23dc073f609 /qt-ui/mainwindow.h | |
parent | 76d4e3d91614459394b1909d625adc7219b04740 (diff) | |
download | subsurface-b5d0cfd557aa94a423e19663339439301ab1a5ae.tar.gz |
propagate save errors further, don't mark divelist unchanged
This at least avoids marking the dive list as unchanged on a failed
write, and propagates the error further up the stack.
We still don't show the error string in the GUI, though. I'll start
doing that next, I think.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r-- | qt-ui/mainwindow.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 8244d0a0f..971bd1768 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -163,8 +163,8 @@ private: static MainWindow *m_Instance; bool askSaveChanges(); void writeSettings(); - void file_save(); - void file_save_as(); + int file_save(); + int file_save_as(); void beginChangeState(CurrentState s); void saveSplitterSizes(); QString lastUsedDir(); |