aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-05 22:38:10 +0000
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-05 22:38:10 +0000
commit6068b3e6942867f0d7e1f6863a0cfafa5e1d1d0c (patch)
tree06c29988e24344cf86b9a5a1cf4ac6a4a8d04aa0 /gpgwin.cpp
parentcheck all tabs for unsaved changes, show dialog if this is the case (diff)
downloadgpg4usb-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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 3670118..1980c5e 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -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 {