From 8c09b01ecb3150db00cc03a087484b130ca332b9 Mon Sep 17 00:00:00 2001 From: ubbo Date: Mon, 5 Dec 2011 23:20:08 +0000 Subject: fix other crashes related to help tab git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@659 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'textedit.cpp') 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; } -- cgit