diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-05 22:38:10 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-05 22:38:10 +0000 |
commit | 6068b3e6942867f0d7e1f6863a0cfafa5e1d1d0c (patch) | |
tree | 06c29988e24344cf86b9a5a1cf4ac6a4a8d04aa0 /gpgwin.cpp | |
parent | check all tabs for unsaved changes, show dialog if this is the case (diff) | |
download | gpg4usb-6068b3e6942867f0d7e1f6863a0cfafa5e1d1d0c.tar.gz gpg4usb-6068b3e6942867f0d7e1f6863a0cfafa5e1d1d0c.zip |
maybe save for anytab and current tab works now
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@435 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r-- | gpgwin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -424,9 +424,11 @@ void GpgWin::createDockWindows() void GpgWin::closeEvent(QCloseEvent *event) { - /** ask to save changes, if text modified + /** + * ask to save changes, if there are + * modified documents in any tab */ - if (edit->maybeSave()) { + if (edit->maybeSaveAnyTab()) { saveSettings(); event->accept(); } else { |