diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-03 20:22:07 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-03 20:22:07 +0000 |
commit | d9caca8195ffaf4d00993bec35792da36964cc69 (patch) | |
tree | 26996378a8e8541de3030c51fe8369840f4e4f28 /textedit.cpp | |
parent | cosmetics, indention (diff) | |
download | gpg4usb-d9caca8195ffaf4d00993bec35792da36964cc69.tar.gz gpg4usb-d9caca8195ffaf4d00993bec35792da36964cc69.zip |
allow exit when no tabs open
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@427 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
-rw-r--r-- | textedit.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/textedit.cpp b/textedit.cpp index bc1caf8..7c1d4ce 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -282,10 +282,15 @@ bool TextEdit::maybeSave() { EditorPage *page = curPage(); - if (page == 0) + if(tabWidget->count() == 0) { + return true; + } + + // whats this supposed to do? it blocks closing program when all tabs closed + /*if (page == 0) { return false; - } + }*/ QTextDocument *document = page->getTextPage()->document(); |