From 3968165a3503ad85ef150a46e4e50050bb69add0 Mon Sep 17 00:00:00 2001 From: ubbo Date: Sun, 19 Feb 2012 23:26:34 +0000 Subject: fix npe git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@814 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- textedit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'textedit.cpp') diff --git a/textedit.cpp b/textedit.cpp index 55ccf86..39039f2 100644 --- a/textedit.cpp +++ b/textedit.cpp @@ -150,7 +150,7 @@ bool TextEdit::saveFile(const QString &fileName) bool TextEdit::saveAs() { - if (tabWidget->count() == 0) { + if (tabWidget->count() == 0 || curPage() == 0) { return true; } -- cgit v1.2.3