diff options
| author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-06 00:20:08 +0100 |
|---|---|---|
| committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-12-06 00:20:08 +0100 |
| commit | 8c09b01ecb3150db00cc03a087484b130ca332b9 (patch) | |
| tree | 865a4cf445483d6140556ce15898c617598f2ee3 /textedit.cpp | |
| parent | fix crashes on closing help tab and exit with open help tabs (diff) | |
| download | gpg4usb-8c09b01ecb3150db00cc03a087484b130ca332b9.tar.gz gpg4usb-8c09b01ecb3150db00cc03a087484b130ca332b9.zip | |
fix other crashes related to help tab
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@659 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.cpp')
| -rw-r--r-- | textedit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/textedit.cpp b/textedit.cpp index 83dc676..10f4585 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -98,7 +98,7 @@ void TextEdit::open() void TextEdit::save() { - if (tabWidget->count() == 0) { + if (tabWidget->count() == 0 || curPage() == 0) { return; } @@ -335,7 +335,7 @@ EditorPage* TextEdit::curPage() void TextEdit::quote() { - if (tabWidget->count() == 0) { + if (tabWidget->count() == 0 || curTextPage() == 0) { return; } |
