From 6068b3e6942867f0d7e1f6863a0cfafa5e1d1d0c Mon Sep 17 00:00:00 2001 From: ubbo Date: Wed, 5 Jan 2011 22:38:10 +0000 Subject: 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 --- gpgwin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gpgwin.cpp') 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 { -- cgit v1.2.3